JSX Components are compiled to Native Views, not the javascript logic code.
Components are compiled
Conclusion:
- You can start with expo cli because of easy working flow and less setup
- With expo, you can test with native functions like camera with devices more easier.
- You can always switch from expo cli to react native cli just by using "eject"
- With React Native CLI setup, you can mix between js code and platform native code, such as: kotline or swift
- React Natve CLI required more setup
Project: TodoList
Getting start
npm i -g expo-cli
Create new
## list template
npx create-expo-app --template
## create new
npx create-expo-app rn-example
Build a check-in app for your self, display list of check-in from new to old. When you check-in, you must take a photo, your photo will be saved with your current location.
ScrollView renders all at the beginning even it doesn't visible to the users
So we have another solution for our dynamic list is built-in component that ship with React Native Component => FlatList