haxe-react-native
About this fork
This fork has for aim to improve the externs of haxe-react-native. Quick-Enums dependency was removed to avoid the completion server issues, all the differents props have now a better type definition.
Quick Start
Follow the steps here to start writing an app in less than a minute!
Manual Setup
Install Haxelibs
haxelib install react-nexthaxelib install react-native
Setup React Native
Follow the steps here
Write some Haxe
Main.hx
` haxe
package;
import react.ReactComponent; import react.ReactMacro.jsx; import react.native.api.; import react.native.component.;
class Main {
public static function main()
{
var projectName = 'AwesomeProject';
AppRegistry.registerComponent(projectName, function() return App);
}
}
class App extends ReactComponent {
override function render()
{
return jsx('
<View>
<Text>
Test
</Text>
</View>
');
}
}
##### Build
build.hxml
-lib react -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