0.0.5 • Published 5 years ago

aria-fritta-native-plugins-router v0.0.5

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

aria-fritta-native-plugins-router

install

  • import this plugin in aria-fritta-native
  • add the following code into plugin/index.js in aria-fritta-nativeEvent
import router from "aria-fritta-native-plugins-router";

import Login from "screens/Login";
import Home from "screens/Home";
import SearchPlace from "screens/SearchPlace";

router.login = Login;
router.scenes = [
  {
    key: "home",
    component: Home,
    initial: true
  },
  {
    key: "searchPlace",
    component: SearchPlace,
    title: "SearchPlace",
    initial: false
  }
];
  • add into export object: router
    for example:
export { router, ... };
  • add into export default object: router
    for example:
export default Object.values({
  router,
  ...
});
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

6 years ago