react-native


https://github.com/haxe-react/haxe-react-native

To install, run:

haxelib install react-native 0.1.1 

See using Haxelib in Haxelib documentation for more information.

README.md

haxe-react-native

Quick Start

Follow the steps here to start writing an app in less than a minute!

Manual Setup

Install Haxelibs
  1. haxelib install react
  2. haxelib 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
Contributors
kevinresol
Version
0.1.1
Published
1 year ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github