Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion packages/rn-tester/js/examples/Border/BorderExample.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,12 @@
'use strict';

const React = require('react');
const {StyleSheet, View} = require('react-native');
const {
StyleSheet,
View,
PlatformColor,
DynamicColorIOS,
} = require('react-native');

const styles = StyleSheet.create({
box: {
Expand DownExpand Up@@ -172,6 +177,14 @@ const styles = StyleSheet.create({
borderBottomRightRadius: 30,
borderBottomLeftRadius: 40,
},
border15: {
borderWidth: 10,
borderColor: PlatformColor('systemGray4', 'holo_orange_dark'),
},
border16: {
borderWidth: 10,
Comment thread
habovh marked this conversation as resolved.
Outdated
borderColor: DynamicColorIOS({light: 'magenta', dark: 'cyan'}),
},
});

exports.title = 'Border';
Expand DownExpand Up@@ -299,4 +312,19 @@ exports.examples = [
return <View style={[styles.box, styles.border14]} />;
},
},
{
title: 'System color',
description: 'Using a platform color',
render() {
return <View style={[styles.box, styles.border15]} />;
},
},
{
title: 'Dynamic color',
description: 'Using a custom dynamic color',
platform: 'ios',
render() {
return <View style={[styles.box, styles.border16]} />;
},
},
];