# rndemo **Repository Path**: zxweiProject/rndemo ## Basic Information - **Project Name**: rndemo - **Description**: rn demo visual auto track - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-29 - **Last Updated**: 2021-09-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # React-Native-Demo React-Native-Demo 是基于 react-native 官方文档,把文档所列出的基础组件(简洁、易用、高效) 和 API 实现一遍,并以演示的形式呈现出来。 ![](https://img.shields.io/badge/License-MIT-lightgrey.svg) ![](https://img.shields.io/badge/Powered%20by-ReactNative-28b1b0.svg) ## 在线体验 通过下面的二维码,可以在手机中安装体验 React-Native-Demo ( **内测分发密码: 123** ) | | 二维码 | 描述 | | ------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | | Android | ![](https://www.pgyer.com/app/qrcode/KNHz?sign=&auSign=&code=) | [ reactNativeDemo (点击下载apk - 内测分发密码: 123)](https://www.pgyer.com/KNHz) | | IOS | [....]() | 👍 | > 注:微信等扫码跳转,在浏览器打开允许下载即可。 ## 说明 > 目的是为了直观的熟悉官方提供了哪些能力,使之更熟悉 react-native ,为开发做好充分的准备。 > 如果对您有帮助,您可以点右上角 "Star" 鼓励一下 谢谢! ^\_^ ## 演示图例 ![](/public/images/ios&android_07.png) ![](/public/images/ios&android_03.png)
展开更多演示 ![](/public/images/ios&android_01.png) ![](/public/images/ios&android_02.png) ![](/public/images/ios&android_04.png) ![](/public/images/ios&android_05.png) ![](/public/images/ios&android_06.png) ![](/public/images/ios&android_08.png)
![](/public/images/demo_3.gif) ## 第三方框架及开发环境 - 开发环境: - macOS 10.14.3 - node "v8.8.0" - react-native-cli "2.0.1" - Android Studio "3.2" - Xcode "10.2.1" - 第三方框架 - [react-native(0.59.4)](https://github.com/facebook/react-native) - [react-native-fs](https://github.com/itinance/react-native-fs) - [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons) - [react-native-webview](https://github.com/react-native-community/react-native-webview) - [react-navigation](https://github.com/react-navigation/react-navigation) ## 本地运行 1. [配置 react-native 环境](https://reactnative.cn/docs/getting-started/) 2. 安装 react-native-cli `$ npm i -g react-native-cli` 3. 克隆 React-Native-Demo 仓库到本地 4. 安装依赖 `$ yarn || npm i` 5. 安装导航依赖 `$ yarn add react-native-gesture-handler || npm install --save react-native-gesture-handler` 6. 链接资源 `$ react-native link react-native-gesture-handler & react-native link react-native-webview & react-native link react-native-vector-icons & react-native link react-native-fs` 7. `$ cd project` 8. 打开模拟器 9. 运行项目 `$ npm run android || npm run ios` > 包含本机 Objective-C,Swift,Java 或 Kotlin 代码的 React Native 模块必须“链接”,以便编译器知道将它们包含在应用程序中。 > 运行 Android 项目时,先打开 Virtual Device 或者[真机调式](https://reactnative.cn/docs/running-on-device/) ## 更新进度 - 基础组件 - [x] View - [x] Text - [x] TextInput - [x] Button - [x] Image - [x] ImageBackground - [x] Slider - [x] Switch - 通用组件 - [x] ActivityIndicator - [x] ScrollView - [x] FlatList - [x] SectionList - [x] Modal - [x] Picker - [x] StatusBar - [x] TouchableHighlight - [x] TouchableOpacity - [x] TouchableWithoutFeedback - Component - Android - [x] ViewPagerAndroid - [x] DrawerLayoutAndroid - [x] ProgressBarAndroid - [ ] ToolbarAndroid - Component - IOS - [x] DatePickerIOS - [x] MaskedViewIOS - [x] PickerIOS - [x] ProgressViewIOS - [x] SegmentedControlIOS - [ ] SnapshotViewIOS - [ ] SafeAreaView - API - 交互 - [x] Alert - [x] AccessibilityInfo - [x] AppState - [x] ToastAndroid - [x] CameraRoll - [x] Clipboard - [x] Dimensions - [x] DatePickerAndroid - [x] PermissionsAndroid - [x] TimePickerAndroid - [x] Share - [x] ActionSheetIOS - [x] ImagePickerIOS - [ ] Geolocation - [ ] AsyncStorage - [ ] AppRegistry - [ ] BackHandler - [ ] ImageEditor - [ ] ImageStore - [ ] InteractionManager - [ ] Keyboard - [ ] Linking - [ ] NetInfo - [ ] PanResponder - [ ] Settings - [ ] Systrace - [ ] Vibration - API - 布局 - [x] FlexBox - API - 动画 - [ ] Animated - [ ] Easing - [ ] LayoutAnimation - API - 样式 - [ ] ImageStyle - [ ] PixelRatio - [ ] Shadow - [ ] StyleSheet - [ ] TextStyle - [ ] Transforms - [ ] ViewStyle ### License Copyright (c) 2019 lemon。