fable-import-react-native-push-notification

Fable bindings for React Native Push Notifications

Usage no npm install needed!

<script type="module">
  import fableImportReactNativePushNotification from 'https://cdn.skypack.dev/fable-import-react-native-push-notification';
</script>

README

fable-import-react-native-push-notification

Fable bindings for React Native Push Notification

Installation

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

Follow install instructions for react-native-push-notification and then:

$ npm install --save-dev fable-import-react-native-push-notification

Usage

Follow instructions for react-native-push-notification.

In F# project (.fsproj)

  <ItemGroup>
    <Compile Include="node_modules/fable-import-react-native-push-notification/Fable.Import.ReactNativePushNotification.fs" />
    <Compile Include="node_modules/fable-import-react-native-push-notification/Fable.Helpers.ReactNativePushNotification.fs" />
  </ItemGroup>

In F# script (.fsx)

#load "node_modules/fable-import-react-native-push-notification/Fable.Import.ReactNativePushNotification.fs"
#load "node_modules/fable-import-react-native-push-notification/Fable.Helpers.ReactNativePushNotification.fs"

...