1.2.0 • Published 2 years ago

cycle-native-navigation-web v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Cycle Native Navigation Web

Similar to and largely compatible with cycle-native-navigation but meant for use with react-native-web and Electron.

npm install cycle-native-navigation-web

Note: react-native-navigation, react-native, react-native-web, react are expected peer dependencies.

Usage:

import {run} from 'cycle-native-navigation-web';

const screens = {
  MainScreen: function main(sources) {
    /* Your Cycle.js component here... */
  },
  ListScreen: function list(sources) {
    /* ... */
  },
  HelpScreen: function help(sources) {
    /* ... */
  },
};

const drivers = {
  // Typical Cycle.js drivers object that is given to run()
};

const layout = {
  // The initial app layout, see react-native-navigation docs about this
};

run(screens, drivers, layout);

To support navSource.backPress(), monitor the browser history or the Electron navigation state, and emit the event cyclenativenavigationweb-back on the window.

1.2.0

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.5.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.1

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago