BuckleScript bindings for React Native allows to use ReasonML with ReasonReact to make your iOS, Android and Web apps.
If you use this bindings from the git repo, be sure to use
{ // ... "bs-dependencies": [ // BsReactNative, current "stable" bindings "bs-react-native-monorepo/bs-react-native", // or alternatively, you probably wants (require bs-platform 5.0.1 & and reason-react 0.7) // bs-react-native, but compatible with jsx3 "bs-react-native-monorepo/bs-react-native-jsx3-compat", // new ReactNative, WIP on zero-cost bindings "bs-react-native-monorepo/reason-react-native" }, // When used from git with the following path, bs-platform will use path that won't be working // (because deps are pointing to folder in folder)` // Your bundler (metro or webpack) will say that it can find `bs-react-native/whatever` and/or // `reason-react-native/whatever` // which is correct because it should be `bs-react-native/bs-react-native/whatever` / `bs-react-native/reason-react-native/whatever` // the trick below will correct path in generated JavaScript files // and will just need to be removed when you won't use git directly anymore "js-post-build": { "cmd": "./node_modules/bs-react-native-monorepo/git-monorepo-usage-trick" } }Did you notice bs-react-native-jsx3-compat ? See migration instructions so you can slowly migrate to new reason-react-native bindings.
Next reason-react-native (open ReactNative;) - zero-cost bindings - are still WIP, so use carefully at your own risk.
Things you need
package.jsondep:"bs-platform": "^5.0.4"package.jsondep:"reason-react": "^0.7.0"bsconfig.json:"reason": { "react-jsx": 3 }
Check our getting started guide for details.
You can run the playground with Expo: https://expo.io/@grabbou/bs-react-native.
See https://reasonml-community.github.io/bs-react-native.
See https://github.com/reasonml-community/bs-react-native/tree/master/example
Read the contribution guidelines before contributing.
Check the changelog for more informations about recent releases.
We want this community to be friendly and respectful to each other. Please read the full text so that you can understand what actions will and will not be tolerated.