Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introdução ao React-Native
Search
Felipe Pontes
December 01, 2017
Programming
63
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introdução ao React-Native
Felipe Pontes
December 01, 2017
More Decks by Felipe Pontes
See All by Felipe Pontes
Minicurso de React-Native
felipemfp
1
66
Minicurso de React-Native
felipemfp
0
140
Explorando dados com Pandas
felipemfp
1
140
GeoGuide: Our stack, libraries and structure
felipemfp
0
57
Iniciando com Git e GitHub
felipemfp
0
76
Other Decks in Programming
See All in Programming
Oxlintはいいぞ(続)
yug1224
1
470
Dockerfile CMD for Node.js
grazie1999
0
140
バグを直したら useEffect が消えた
colorful12
3
760
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
5
540
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
2
450
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
180
進化を続けるGo toolsの現在地 / The Current State of Ever-Evolving Go Tools
hond0413
0
270
30年振りにコンパイラの定数整数除算を改善した
herumi
9
4.3k
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
560
AI駆動開発にグラフDBを重ねてみた
satoshi256kbyte
0
340
書籍「プロフェッショナルAI駆動開発」紹介スライド
juntaromatsumoto
0
750
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
1.2k
Featured
See All Featured
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.5k
Technical Leadership for Architectural Decision Making
baasie
3
540
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
220
Automating Front-end Workflow
addyosmani
1369
210k
Optimising Largest Contentful Paint
csswizardry
37
3.9k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Visualization
eitanlees
152
17k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
690
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
250
Transcript
Introdução ao React-Native @felipemfp Pesquisador LAIS-HUOL
Agenda • Introdução ao React • Introdução ao React-Native •
Componentes Inclusos • Componentes Open-Source • Expo • Demostração
Introdução ao React
Apenas uma biblioteca
Tudo são componentes
“Componentes interativos, stateful e reutilizáveis”
Ciclo de vida simplificado
Como escrevemos componentes em React? • Componentes são classes •
render() e JSX
JSX
Como escrevemos componentes em React? • Possuem props e state
• Possuem funções: ◦ setState() ◦ getInitialState() ◦ getDefaultProps() ◦ [...]
props
state
Como escrevemos componentes em React? • Dados fluem numa única
direção • Renderização conforme necessário (Virtual DOM)
Virtual DOM
Introdução ao React-Native
React-Native é React
Introdução ao React-Native • Componentes são renderizados como componentes nativos
• Os mesmos conceitos são utilizados para construir aplicações • Suporte oficial para iOS e Android • Suporte ainda para Universal Windows
Introdução ao React-Native • Ciclo de vida (props, state...) do
componentes são o mesmo • Continuamos usando JSX
CSS não é o mesmo
Adicionando estilo aos componentes nativos • “CSS” como prop •
StyleSheet é quase CSS
StyleSheet
Construindo layout com React-Native • O mesmo Flexbox da web
• Com diferentes defaults: ◦ flexDirection: column ◦ alignItems: stretch
Componentes inclusos
Componentes inclusos • ActivityIndicator • Button • CheckBox • DatePickerIOS
• DrawerLayoutAndroid • FlatList • Image • KeyboardAvoidingView • ListView • MaskedViewIOS • Modal • NavigatorIOS • Picker • Picker.Item • PickerIOS • ProgressBarAndroid • ProgressViewIOS • RefreshControl • ScrollView • SectionList • SegmentedControlIOS • Slider • SnapshotViewIOS • StatusBar
Componentes inclusos • Switch • TabBarIOS • TabBarIOS.Item • Text
• TextInput • ToolbarAndroid • TouchableHighlight • TouchableNativeFeedback • TouchableOpacity • TouchableWithoutFeedback • View • ViewPagerAndroid • VirtualizedList • WebView
API inclusas • AccessibilityInfo • ActionSheetIOS • Alert • AlertIOS
• Animated • AnimatedValue • AnimatedValueXY • AppRegistry • AppState • AsyncStorage • BackAndroid • BackHandler • CameraRoll • Clipboard • DatePickerAndroid • Dimensions • Easing • Geolocation • ImageEditor • ImagePickerIOS • ImageStore • InteractionManager • Keyboard • LayoutAnimation
API inclusas • Linking • NetInfo • PanResponder • PermissionsAndroid
• PixelRatio • PushNotificationIOS • Settings • Share • StatusBarIOS • StyleSheet • Systrace • TimePickerAndroid • ToastAndroid • Vibration • VibrationIOS • Layout Props • Picker Style Props • Shadow Props
Componentes Open-Source http://www.awesome-react-native.com/
None
None
None
None
Expo
Expo é React-Native • Apenas JavaScript • Fácil prototipagem •
Rápido desenvolvimento
Demostração
Demostração • yarn global add create-react-native-app • create-react-native-app dojo •
cd dojo • yarn start
Obrigado! Questionamentos? gh: @felipemfp tw: @felipemfp