fable-import-react-native-image-resizer

Fable bindings for React Native Image Resizer

Usage no npm install needed!

<script type="module">
  import fableImportReactNativeImageResizer from 'https://cdn.skypack.dev/fable-import-react-native-image-resizer';
</script>

README

fable-import-react-native-image-resizer

Fable bindings for React Native Image Resizer

Installation

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

Follow install instructions for react-native-image-resizer and then:

$ npm install --save-dev fable-import-react-native-image-resizer

Usage

Follow instructions for react-native-image-resizer.

In F# project (.fsproj)

  <ItemGroup>
    <Compile Include="node_modules/fable-import-react-native-image-resizer/Fable.Import.ReactNativeImageResizer.fs" />
    <Compile Include="node_modules/fable-import-react-native-image-resizer/Fable.Helpers.ReactNativeImageResizer.fs" />
  </ItemGroup>

In F# script (.fsx)

#load "node_modules/fable-import-react-native-image-resizer/Fable.Import.ReactNativeImageResizer.fs"
#load "node_modules/fable-import-react-native-image-resizer/Fable.Helpers.ReactNativeImageResizer.fs"


...