/fable-react_native-demo

Demo of Fable with React Native for cross platform native mobile apps

Primary LanguageF#

Fable on React Native demo

This is a very early prototype for React Native development in F# using Fable.

If you want to try it out then please do the following:

Make sure React Native works

Running F# code on React Native

  • Pull latest master
  • Run "npm install" from command prompt
  • Open Android Simulator
  • Open VS Code
  • Press F5 to start debug
  • Go to android device simulator and you should see something like

Device Running

  • Go to VS Code and hit Ctrl+Shift+B this will activate fable watch
  • Go to the F# source in VS Code make a change and save the file
  • Fable watch should pick up this change automatically and compile it
  • Go to android device simulator and press r+r - change should be visible

This could look like:

Hot loading