3

I'm able to setup Elmish-React by following https://github.com/fable-elmish/react

dotnet new -i "Fable.Template.Elmish.React::*"
dotnet new fable-elmish-react -n MyProject

but I can't figure out what I need to do to get the equivalent native app. I want to be able to get the simple counter example working from https://fable-elmish.github.io/react/native.html.

I've tried creating a react-native app with

$ npm install -g react-native-cli
$ react-native init AwesomeProject

This is great, but it gives me a Javascript project and I don't understand how to plugin or adjust it to make an F# project with Fable.

glennsl
  • 28,186
  • 12
  • 57
  • 75
Stephen Straton
  • 709
  • 5
  • 12
  • I suspect that the workflow is (at least partially) described here : https://facebook.github.io/react-native/docs/getting-started.html – spender Nov 30 '17 at 11:45
  • Have you had a look at the nightwatch demo using the SAFE stack: https://github.com/SAFE-Stack/SAFE-Nightwatch ? – torbonde Nov 30 '17 at 14:30
  • @spender yes, that is what I followed in the second part. The issue I have is finding out how to hook the F# in. – Stephen Straton Dec 01 '17 at 00:06

1 Answers1

4

The Native story has been somewhat neglected since I'm not using it myself, but this example has been updated a few month ago to fairly recent tooling and it should be a good base to start from. Most of it is what you'd get from react-native init, so just clone and start playing with it.

Eugene Tolmachev
  • 822
  • 4
  • 14