Coder Social home page Coder Social logo

react-native's Introduction

react-native

两种写法的差异:(第二种代码可正常运行)

getlist(){

}

this.getlist()

getlist = () => {

}

this.getlist

父子组件传值方式

props接收

https://github.com/justcodejs/RN_Zero2Hero_Tutorial03 (https://www.bilibili.com/video/BV1mg4y187Gm?from=search&seid=7712573974682010475)

安装所需要的模块

yarn add @react-navigation/native    // react-navigation基本模块

// react-navigation基本模块所需
yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view

// 安装导航器模块
yarn add @react-navigation/drawer @react-navigation/bottom-tabs @react-navigation/stack

// 安装异步存储模块(将数据保存在设备的存储中)
yarn add @react-native-community/async-storage

// 将数据显示至列表界面中
yarn add react-native-swipe-list-view

// 在应用程序内显示图标
yarn add react-native-vector-icons

// 执行日期格式化
yarn add moment

// 安装iOS需要的本机模块
cd ios && pod install && cd ..

// 安装redux 
yarn add redux

@react-native-community/geolocation

redux

action

reducer

store

react-native's People

Contributors

gwemz avatar

Watchers

James Cloos 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.