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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwNDAyMjYsIm5iZiI6MTcxOTAzOTkyNiwicGF0aCI6Ii8zMTAwOTc1MC8zMTcwMDkwNjMtZTFhZWIwYWItZmUxMi00MmVmLWI1MjEtZTIwNTM4YzBhZjc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIyVDA3MDUyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMzOWEwMTE1ZDhmMDhlOTI3NWQzMzM4ZGRlODQ3YTlmMGUwMDIwODU0OWJiZThjNzI4ZmMwYjM1NTAyMjU2ZjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.EIEL9MUTGatjlMOOjSca9EkZbgRYraDjlICqUigo4zo)