Created
October 12, 2017 21:22
-
-
Save Denommus/269259f11e73c1c2c50c8fb3ab02f540 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MyApp from './lib/js/re/myApp.js'; | |
import { AppRegistry } from 'react-native'; | |
AppRegistry.registerComponent('momirreason', () => MyApp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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