bs-react-native-router-flux

0.0.1 • Public • Published

bs-react-native-router-flux

BuckeScript bindings for RNRF

Demo

let component = ReasonReact.statelessComponent "Root";
 
/* Use `name` instead of `key`, `key` is a reserved word here*/
let make _ _children => {
  ...component,
  render: fun _self => {
    <Router>
      <Stack name="root">
        <Scene name="login" title="Login" component=Login.jsComponent />
      </Stack>
    </Router>
  }
};
 
/* Export it */
let jsComponent = ReasonReact.wrapReasonForJs ::component (fun _props => make () [||]);

Readme

Keywords

none

Package Sidebar

Install

npm i bs-react-native-router-flux

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • gabrielrubens