fable-react-native-simple-store

Fable bindings for a simple React Native data store

Usage no npm install needed!

<script type="module">
  import fableReactNativeSimpleStore from 'https://cdn.skypack.dev/fable-react-native-simple-store';
</script>

README

fable-react-native-simple-store

Fable bindings for a simple React Native data store

Installation

Install fable-import-react-native and follow the instructions for that package.

$ npm install --save-dev fable-react-native-simple-store

Usage

In F# project (.fsproj)

  <ItemGroup>
    <Compile Include="node_modules/fable-react-native-simple-store/Fable.Helpers.ReactNative.SimpleStore.fs" />
  </ItemGroup>

In F# script (.fsx)

#load "node_modules/fable-react-native-simple-store/Fable.Helpers.ReactNative.SimpleStore.fs"

open Fable.Core
open Fable.Import
module R = Fable.Helpers.React
module RN = Fable.Import.ReactNative
open RN.Props

...