Hybrid - 02 - React Native
Hybrid - 02 - React Native
Hybrid Mobile
Applications -
ICD0018
TalTech IT College, Andres Käver, 2019-2020, Fall semester
Web: http://enos.Itcollege.ee/~akaver/HybridMobile
Skype: akaver Email: [email protected]
React Native 2
React N 3
React Native is like React, but it uses native components instead of web
components as building blocks.
macOS
Node, Watchman, CLI, JDK, Android Studio, Xcode for iOS
Windows
Node, CLI, Python2, JDK, Android Studio
Linux
Node, CLI, JDK, Android Studio
Init project
Run it
>cd RNTest01
>react-native run-android
React N - IDE 9
VS Studio Code
React Native Tools
https://marketplace.visualstudio.com/items?itemName=vsmobile.vscode-react-native
https://github.com/microsoft/vscode-react-native
https://devblogs.microsoft.com/typescript/typescript-and-babel-7/
https://facebook.github.io/react-native/blog/2018/05/07/using-typescript-with-reac
t-native
React N – Basic TS app 11
render() {
return (
<View style={styles.root}>
<Text style={styles.greeting}>
Hello, {this.props.name}
</Text>
</View>
);
}
}