Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
maxwit
apsara
Repository navigation
Code
Issues
22
(22)
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
3. React Native
Jump to bottom
姚布斯 edited this page
Feb 3, 2018
·
2 revisions
React Native
参考
一些成功案例
FaceBook 官方Sample - F8 APP
React Native中文网 提供的各类学习资源
国外的 Awesome React Native
开发环境
搭建开发环境
Tools
Yarn Facebook提供的替代npm的工具,可以加速node模块的下载
react-native-cli 命令行工具用于执行创建、初始化、更新项目、运行打包服务(packager)等任务
Android
Android Studio:>=2.0
JDK 1.8
ANDROID_HOME Android SDK
CMD
react-native init ProjectName 初始化一个工程、下载React Native的所有源代码和依赖包,最后在ProjectName /iOS/SampleAppMovies.xcodeproj和ProjectName /android/app下分别创建一个新的XCode工程(iOS)和一个gradle工程(Android)
cd ProjectName
adb devices -l
react-native run-android 构建工程 并自动安装到你的模拟器或者设备,同时启动用于实现动态代码加载的Node服务
概念
其基础组件是原生组件而非web组件
React JSX语法、组件、state状态以及props属性
React Native 原生组件的使用
语法
ES6 import、from、class、extends、以及() =>箭头函数
es6 入门
es5 es6区别
JSX 一种在JavaScript中嵌入XML结构的语法
组件(Component)
Flexbox
Flex入门
Flex 案例
Wiki pages
Pages
8
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
2. OpenStack
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
3. React Native
React Native
参考
开发环境
Tools
Android
CMD
概念
语法
Loading
4. Spring Boot
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
5. Android & iOS
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
6. EFK Stack
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
7. Nexus & LDAP
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
8. Dalgen
Uh oh!
There was an error while loading.
Please reload this page
.
Clone this wiki locally
You can’t perform that action at this time.