Closed JulesGuesnon closed 3 years ago
Hello !
First of all, thanks for your work on these bindings !
Because of the default scope:
default
@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:
Rescript-React-Native/Template
ES6
"package-specs": { "module": "es6", "in-source": true },
Shouldn't the @scope("default") be remove ?
@scope("default")
Yes indeed it looks like a bug. Fixed in 2.3.6.
Hello !
First of all, thanks for your work on these bindings !
Because of the
default
scope:Rescript get transpiled to:
But as
Rescript-React-Native/Template
comes withES6
:Shouldn't the
@scope("default")
be remove ?