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.
Default FlexBox
![image](https://private-user-images.githubusercontent.com/31009750/317009063-e1aeb0ab-fe12-42ef-b521-e20538c0af76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0NTQwNjYsIm5iZiI6MTcxOTQ1Mzc2NiwicGF0aCI6Ii8zMTAwOTc1MC8zMTcwMDkwNjMtZTFhZWIwYWItZmUxMi00MmVmLWI1MjEtZTIwNTM4YzBhZjc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI3VDAyMDI0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQxMDE3MTZmYzllMjA3MWQ2ZmY3ZjE3ZDE1YTdkN2E4MzI5OTVmOGVjZjVmOTk5M2MzOTA2NDA0MzIyMmQ1ZjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.y8jR-dEjax3AuhpJTveK4rsrfDFAtcH5DVig3lGzJoE)