bs-react-native-router-flux
v0.0.1
Published
BuckeScript bindings for RNRF
Downloads
3
Readme
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 () [||]);