npm.io
0.0.2 • Published 7 years ago

aria-fritta-native-plugins-mobx

Licence
MIT
Version
0.0.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0

aria-fritta-native-plugins-mobx

install

Structure the store

  • copy examples folder into plugins folder in aria-fritta-native
  • add the following code into plugin/index.js in aria-fritta-nativeEvent
import mobx from "aria-fritta-native-plugins-mobx";

import LanguageMobx from "./examples/lang";
import UserMobx from "./examples/user";

mobx.props = {
  objects: [
    {
      id: "lang",
      store: new LanguageMobx(),
      callback: (wrapperSelf, lang) => {}
    },
    {
      id: "user",
      store: new UserMobx(),
      callback: (wrapperSelf, user) => {}
    }
  ]
};
  • add into export object: mobx
    for example:
export { mobx, ... };
  • add into export default object: mobx
    for example:
export default Object.values({
  mobx,
  ...
});