Skip to content

Instantly share code, notes, and snippets.

@Denommus
Created October 12, 2017 21:22
Show Gist options
  • Save Denommus/269259f11e73c1c2c50c8fb3ab02f540 to your computer and use it in GitHub Desktop.
Save Denommus/269259f11e73c1c2c50c8fb3ab02f540 to your computer and use it in GitHub Desktop.
import MyApp from './lib/js/re/myApp.js';
import { AppRegistry } from 'react-native';
AppRegistry.registerComponent('momirreason', () => MyApp);
open ReactNative;
let component = ReasonReact.statelessComponent "MyApp";
let make _children => {
...component,
render: fun _ =>
<View style=Style.(style [flex 1., justifyContent `center, alignItems `center])>
<Text value="Is reason awesome?" />
</View>
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment