diff --git a/App.js b/App.js index 4c282a2..e5c9f0c 100644 --- a/App.js +++ b/App.js @@ -1,18 +1,47 @@ -import { SafeAreaView, Text } from 'react-native'; -import tw, { useDeviceContext } from 'twrnc'; +import { NavigationContainer } from '@react-navigation/native'; +import { FlatList, SafeAreaView, Text, View } from 'react-native'; +import 'react-native-reanimated'; import { Provider } from 'react-redux'; +import tw, { useDeviceContext } from 'twrnc'; import { store } from './store'; -import 'react-native-reanimated'; + +//This is the note object. Can be added dynamically +const Note = ({item}) => { + return ( + + {item.note} + + ) +} + +const generateData = (count) => Array.from({length : count}, (_, i) => ({id : (i + 1).toString(), note : "Lorem ipsum dolor sit amet"})); +const data = generateData(20); + +const Stack = createNativeStackNavigator(); + +function HomeScreen({navigation}){ + return( + item.id} + renderItem = {({item}) => } + numColumns = {3} + contentContainerStyle={tw`p-4`} + /> + ) +} function App() { useDeviceContext(tw); - return ( - - Your app code goes here. - + + + + + + )