Skip to content

Commit 35dcafb

Browse files
joshuapintergitim
authored andcommitted
Add title.
1 parent d44f3a0 commit 35dcafb

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

examples/Basic/index.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class Basic extends Component {
6868
render() {
6969
return (
7070
<View style={styles.container}>
71+
<Text style={styles.title}>React Native Sortable List</Text>
7172
<SortableList
7273
style={styles.list}
7374
contentContainerStyle={styles.contentContainer}
@@ -139,18 +140,19 @@ const styles = StyleSheet.create({
139140
flex: 1,
140141
justifyContent: 'center',
141142
alignItems: 'center',
143+
backgroundColor: '#eee',
142144

143-
// ...Platform.select({
144-
// ios: {
145-
backgroundColor: '#eee',
146-
paddingTop: 60,
147-
// },
148-
149-
// android: {
150-
// backgroundColor: '#fff',
151-
// paddingTop: 0,
152-
// },
153-
// }),
145+
...Platform.select({
146+
ios: {
147+
paddingTop: 20,
148+
},
149+
}),
150+
},
151+
152+
title: {
153+
fontSize: 20,
154+
paddingVertical: 20,
155+
color: '#999999',
154156
},
155157

156158
list: {

0 commit comments

Comments
 (0)