React Native
Dev Meetings
06.04.2019
Wrocław
Łukasz
@czystyl
CRZ GOSC
Gosc2018witamy
Questions
???
Who knows
React?
Who knows
React Native?
Who knows
- PhoneGap?
- Ionic?
- NativeScript?
- Cordova?
- Flutter?
Overview of React Native
Architecture of React Native
Basic Components
View & Text
As div & span
StyleSheet
ScrollView
FlatList
Let's code!
-
npm install -g expo-cli
- Expo for iOS and Android
-
expo init
-
cd ${your_project_name}
-
yarn start
Task
- Create new project using Expo CLI
- Display single note, for now it can be just text
- Display list of notes
- Apply styling to list
*Additional
- Add flag indicating whether note is completed or not, display only not completed notes
- Divide notes to sections: todo, completed
Buttons and Touchable
Buttons
Handling Inputs
Controlled input
Task
- Add simple form for adding new note
Device storage
Async Storage
Task
- Save notes to AsyncStorage
- Add possibility to edit and remove note
Images and icons
Image and Vector Icons
Task
* Additional
- Allow user to show and hide completed notes
- Use icons for displaying completed note indicator and for buttons
- Handle usage of AsyncStorage completely outside components
https://bit.ly/2I08xl3
Navigation
StackNavigation
Task
- Add view for displaying note details
* Additional
- Add separate view for creating new note/editing existing one
- Add possibility to set planned date for note
- Make date selecting working properly on both iOS and Android
Location
Using MapView
Using Markers
Task
- Add automatic save of current location when creating a new note
- Display MapView with note location in details view
* Additional
- Allow user to select location when creating/editing note
react-native dev-meetings
By czystyl
react-native dev-meetings
- 322