Git Product home page Git Product logo

react-navigation-all's Introduction

React-Navigation-All

React Navigation综合案例,讲解如何使用DrawerNavigator进行侧滑, 同时,示例中:

一:侧滑有以下两种实现方式:

1-:所有页面,都可以进行侧滑

2-:只有特定的TAb页面进行侧滑

index.android.js中修改入口文件即可:

//支持所有页面侧滑 import App from './jscode/tabAll/App';

//支持某个页面进行侧滑 import App from './jscode/tabOne/App'

二:动态化修改路由

下载完成后,修改index.ios.js:入口文件如下:

import App from './jscode/changestack/App'

AppRegistry.registerComponent('All', () => App);

即可运行

三:基于React-Native和Mobx的购物车

https://github.com/erhutime/React-Navigation-All/blob/master/All/Screenshots/shoppingcar.gif

下载完成后,修改index.ios.js:入口文件如下:

import App from './jscode/shoppingcar/src/App'

AppRegistry.registerComponent('All', () => App);

即可运行

四:左右联动List

下载完成后,修改index.ios.js:入口文件如下:

import App from './jscode/doubleList/App' AppRegistry.registerComponent('All', () => App);

即可运行

react-navigation-all's People

Contributors

erhutime 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.