Noncommital Premarital Mischief

    @rescript-react-native/image-picker

    3.6.0 • Public • Published

    @rescript-react-native/image-picker

    Build Status Version ReScript Forum

    ReScript bindings for react-native-image-picker.

    Exposed as ReactNativeImagePicker module.

    @rescript-react-native/image-picker X.y.* means it's compatible with react-native-image-picker X.y.*

    Installation

    When react-native-image-picker is properly installed & configured by following their installation instructions, you can install the bindings:

    npm install @rescript-react-native/image-picker
    # or
    yarn add @rescript-react-native/image-picker

    @rescript-react-native/image-picker should be added to bs-dependencies in your bsconfig.json:

    {
      //...
      "bs-dependencies": [
        "@rescript/react",
        "rescript-react-native",
        // ...
    +    "@rescript-react-native/image-picker"
      ],
      //...
    }

    Usage

    open ReactNativeImagePicker
    
    launchCamera(
      options(
        ~cameraType=#back,
        ~mediaType=#photo,
      ()),
      res => {
        Js.log(res.uri)
      }
    )

    Changelog

    Check the changelog for more informations about recent releases.


    Contribute

    Read the contribution guidelines before contributing.

    Code of Conduct

    We want this community to be friendly and respectful to each other. Please read our full code of conduct so that you can understand what actions will and will not be tolerated.

    Install

    npm i @rescript-react-native/image-picker

    DownloadsWeekly Downloads

    23

    Version

    3.6.0

    License

    MIT

    Unpacked Size

    6.97 kB

    Total Files

    6

    Last publish

    Collaborators

    • moox