Giter Site home page Giter Site logo

reactnativedemo's Introduction

React-Native-Demos

React-Native-Demos 是基于 react-native 官方文档,把文档所列出的基础组件(简洁、易用、高效) 和 API 实现一遍,并以演示的形式呈现出来。

在线体验

通过下面的二维码,可以在手机中安装体验 React-Native-Demos:

二维码 描述
Android reactNativeDemo (点击下载apk)
IOS .... 👍

注:微信等扫码跳转,在浏览器打开允许下载即可。

说明

目的是为了直观的熟悉官方提供了哪些能力,使之更熟悉 react-native ,为开发做好充分的准备。

将持续更新,直到保持和英文文档进度一致;另还将收录一些第三方库和项目沉淀的一些组件,若有任何问题欢迎交流讨论

如果对您有帮助,您可以点右上角 "Star" 鼓励一下 谢谢! ^_^

演示图例

展开更多演示

第三方框架及开发环境

本地运行

  1. 配置 react-native 环境

  2. 安装 react-native-cli $ npm i -g react-native-cli

  3. 克隆 React-Native-Demos 仓库到本地

  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

PS: 包含本机 Objective-C,Swift,Java 或 Kotlin 代码的 React Native 模块必须“链接”,以便编译器知道将它们包含在应用程序中。

PS: 运行 Android 项目时,先打开 Virtual Device 或者真机调式

更新进度

  • 基础组件

    • View
    • Text
    • TextInput
    • Button
    • Image
    • ImageBackground
    • Slider
    • Switch
  • 通用组件

    • ActivityIndicator
    • ScrollView
    • FlatList
    • SectionList
    • Modal
    • Picker
    • StatusBar
    • TouchableHighlight
    • TouchableOpacity
    • TouchableWithoutFeedback
  • Component - Android

    • ViewPagerAndroid
    • DrawerLayoutAndroid
    • ProgressBarAndroid
    • ToolbarAndroid
  • Component - IOS

    • DatePickerIOS
    • MaskedViewIOS
    • PickerIOS
    • ProgressViewIOS
    • SegmentedControlIOS
    • SnapshotViewIOS
    • SafeAreaView
  • API - 交互

    • Alert
    • AccessibilityInfo
    • AppState
    • ToastAndroid
    • CameraRoll
    • Clipboard
    • Dimensions
    • DatePickerAndroid
    • PermissionsAndroid
    • TimePickerAndroid
    • Share
    • ActionSheetIOS
    • ImagePickerIOS
    • Geolocation => 待续
    • AsyncStorage => 待续
    • AppRegistry => 待续
    • BackHandler => 待续
    • ImageEditor => 待续
    • ImageStore => 待续
    • InteractionManager => 待续
    • Keyboard => 待续
    • Linking => 待续
    • NetInfo => 待续
    • PanResponder => 待续
    • Settings => 待续
    • Systrace
    • Vibration => 待续
  • API - 布局

    • FlexBox
  • API - 动画

    • Animated => 待续
    • Easing => 待续
    • LayoutAnimation => 待续
  • API - 样式

    • ImageStyle => 待续
    • PixelRatio => 待续
    • Shadow => 待续
    • StyleSheet => 待续
    • TextStyle => 待续
    • Transforms => 待续
    • ViewStyle => 待续

开源协议

本项目基于 MIT License - Copyright (c) 2019 lemon。

reactnativedemo's People

Contributors

cllemon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.