Follow the steps here to start writing an app in less than a minute!
haxelib install react-nexthaxelib install react-native
Follow the steps here
Main.hx
package;
importreact.ReactComponent;
importreact.ReactMacro.jsx;
importreact.native.api.*;
importreact.native.component.*;
classMain
{
publicstaticfunctionmain()
{
varprojectName='AwesomeProject';
AppRegistry.registerComponent(projectName, function() returnApp);
}
}
classAppextendsReactComponent
{
overridefunctionrender()
{
returnjsx(' <View> <Text> Test </Text> </View>');
}
}build.hxml
-lib react-native
-cp src
-main Main
-js index.ios.js
Then the generated index.ios.js can be used in the usual react-native workflow