Skip to content

Astrocoders/bs-react-native-router-flux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 () [||]);

About

BuckeScript bindings for RNRF, really really not ready yet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published