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
62
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
52
Iniciando com Git e GitHub
felipemfp
0
75
Other Decks in Programming
See All in Programming
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
210
今さら聞けない .NET CLI
htkym
0
180
複数の Claude Code が"放置"されてしまう問題をCLI ダッシュボードを自作して解決した話
sumihiro3
1
670
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
370
Android CLI
fornewid
0
210
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
460
yield再入門 #phpcon
o0h
PRO
0
970
プロポーザルを書いてもらう
pvcresin
0
280
S3 を使うアプリケーションをローカル完結で動かすことに全力を注いでみた / Running S3 Apps Offline
contour_gara
0
370
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
370
the container ship “Apple Silicon”@WWDC26 Recap -Japan-\(region).swift
shingangan
0
110
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
260
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
50
15k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
Crafting Experiences
bethany
1
240
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Raft: Consensus for Rubyists
vanstee
141
7.6k
Optimizing for Happiness
mojombo
378
71k
A designer walks into a library…
pauljervisheath
211
24k
Thoughts on Productivity
jonyablonski
76
5.3k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
230
A Tale of Four Properties
chriscoyier
163
24k
Six Lessons from altMBA
skipperchong
29
4.4k
Google's AI Overviews - The New Search
badams
0
1.1k
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