Skip to content

Commit

Permalink
docs: update styles in example
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomantovani committed Feb 18, 2024
1 parent c6fd90d commit 3f887a0
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions example/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { View, Text, FlatList } from 'react-native';
import { View, Text, FlatList, StyleSheet } from 'react-native';
import { ForceUpdate } from 'reactnative-forceupdate';

interface ListItem {
Expand Down Expand Up @@ -27,10 +27,11 @@ const App: React.FC = () => {
}
language={'en'}
platform={'ANDROID'}
version={'1.0.2'}
version={'3.0.2'}
>
<View>
<View style={styles.container}>
<FlatList
contentContainerStyle={styles.list}
data={data}
renderItem={renderItem}
keyExtractor={(item) => item.id.toString()}
Expand All @@ -40,4 +41,17 @@ const App: React.FC = () => {
);
};

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#39cb31',
},
list: {
alignItems: 'center',
justifyContent: 'center',
width: '100%',
height: '100%',
},
});

export default App;

0 comments on commit 3f887a0

Please sign in to comment.