1.0.6 • Published 7 years ago

react-native-dj-navigation v1.0.6

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

Navigation

accordion

Install

npm i --save react-native-dj-navigation

Usage

Using in your app will usually look like this:

//入口
import React, {Component} from 'react';
import {
    AppRegistry,
} from 'react-native';

import {NavPage} from 'react-native-dj-navigation';
import First from './first';
class AwesomeProject extends Component {
    
    render() {
        return (
            <NavPage params={{}} defaultName="123" defaultComponent={First}/>
        );
    };
}
AppRegistry.registerComponent('xxx', () => NPMTest);

//第一个页面
import React, {Component} from 'react';
import {
    AppRegistry,
    Text,
    View,
} from 'react-native';
import {DefaultNavView} from 'react-native-dj-navigation';

export default class First extends Component {
    render() {
        return (
            <View>
            <DefaultNavView {...this.props} title={'测试'} hiddenBack ={true}></DefaultNavView>
              <Text>第一个页面</Text>
            </View>
        );
    };
}
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago