Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 975 Bytes

README.md

File metadata and controls

50 lines (30 loc) · 975 Bytes

@ivonna/navigation

Ivonna is a hybrid development framework of native and react native, which supports IOS and Android.

Installation

npm install @ivonna/navigation

Usage

Registry your components

import { AppRegistry } from '@ivonna/navigation';

AppRegistry.registerComponent('Home', HomeComponent);
AppRegistry.registerComponent('Mine', MineComponent);

Navigate to destination

import { Navigation } from '@ivonna/navigation';

// ...

Navigation.push('Home');

Using the State Manager

import { Container } from '@ivonna/navigation';

const { moduleStore, setModuleStore } = Container.useContainer('Common'); // `Common` is module name

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

DingTalk group