React Native
for web developers ๐ฅท
๐ Hello!
I AM Youssouf El Azizi
2
What to expect from this talk ?
In this talk:
3
I accept and agree of what to expect from this talk
Be Ready
โIf you align expectations with reality, you will never be disappointed.โ Terell Owens
4
Web vs React Native
Web
React Native
5
This is a new ecosystem with new challenges and issues ๐ค
PRACTICE FUNDAMENTALS FIRST
Javascript -> Typescript -> React
6
REACT NATIVE LEARNING CURVE
7
Difficulty
Time
First week dealing with environment and discovering the platform
Challenge on deploying apps to stores and prod issues
Building your own third-party library and playing with native code
๐
๐
Why React Native ?
Story time ๐ฅ
8
?
About React Native
React Native is a framework for building cross-platform apps developed by Facebook to solve this problem of managing two of everything. Their goal was to build a platform that enables you to have:
9
How React Native work
10
More components
11
React Native UI Component | Web Analog | Android | Ios |
<View> | A non-scrolling <div> | <UIView> | <ViewGroup> |
<Text> | <p> <h1> โฆ | <TextView> | <UITextView> |
<Image> | <img> | <ImageView> | <UIImageView> |
<ScrollView> | <div> | <ScrollView> | <UIScrollView> |
<TextInput> | <input type="text"> | <EditText> | <UITextField> |
How React Native work ( Hard way)
12
Getting started with react native
13
14
โ
Real Mobile apps
15
Obytes Starter
Start a new react native project with best practices or just get some inspiration for you next react native project
16
Philosophy
17
Features
18
โ Last Expo SDK + Costume Dev client
๐ Type checking with TypeScript
๐ Minimal UI kit using tailwindcss with theming.
โ๏ธ Support multiple environnement builds [Production, Staging, Development] using Expo configuration.
๐ฆ Husky for Git Hooks
๐ก Clean project structure with Absolute Imports
๐ซ Lint-staged for running linters + typescript checking on Git staged files
Features
19
๐ VSCode recommended extensions configuration, settings and snippets for a better developer experience
โ๏ธ React Navigation pre-installed with examples
๐ซ Auth flow with zustand and react-native-mmkv as a storage to save sensitive data.
๐ A simple workflow to build, release and distribute your application using Github action + Expo EAS
๐ฅ React Query & axios to fetch Data
๐งต A good approach with example to handle forms based on react-hook-form and yup for validation
๐ฏ Localization with i18next + validation using Eslint.
The team behind the starter
20
How to start a new RN project in Obytes way?
21
Takeaways
22
Thanks!
ANY QUESTIONS?( Please don't ask about Flutter)
You can find me at
elazizi.com
y.elazizi@obytes.com
23