Skip to content

Bindings don't work with ES6 #6

Closed
@JulesGuesnon

Description

@JulesGuesnon

Hello !

First of all, thanks for your work on these bindings !

Because of the default scope:

  @module("react-native-image-picker") @scope("default")
  external launchCamera: (Options.t, response => unit) => unit = "launchCamera"

  @module("react-native-image-picker") @scope("default")
  external showImagePicker: (Options.t, response => unit) => unit = "showImagePicker"

  @module("react-native-image-picker") @scope("default")
  external launchImageLibrary: (Options.t, response => unit) => unit = "launchImageLibrary"

Rescript get transpiled to:

ReactNativeImagePicker.default.whatever 

But as Rescript-React-Native/Template comes with ES6:

"package-specs": {
    "module": "es6",
    "in-source": true
  },

Shouldn't the @scope("default") be remove ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions