1- # ` @reason -react-native/image-editor `
1+ # ` @rescript -react-native/image-editor `
22
3- [ ![ Build Status] ( https://github.com/reason -react-native/image-editor/workflows/Build/badge.svg )] ( https://github.com/reason -react-native/image-editor/actions )
4- [ ![ Version] ( https://img.shields.io/npm/v/@reason -react-native/image-editor.svg )] ( https://www.npmjs.com/@reason -react-native/image-editor )
5- [ ![ Chat ] ( https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue )] ( https://reason-react-native.github.io/discord / )
3+ [ ![ Build Status] ( https://github.com/rescript -react-native/image-editor/workflows/Build/badge.svg )] ( https://github.com/rescript -react-native/image-editor/actions )
4+ [ ![ Version] ( https://img.shields.io/npm/v/@rescript -react-native/image-editor.svg )] ( https://www.npmjs.com/@rescript -react-native/image-editor )
5+ [ ![ ReScript Forum ] ( https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org )] ( https://forum.rescript-lang.org / )
66
7- [ ReScript] ( https://rescript-lang.org ) / [ Reason ] ( https://reasonml.github.io ) bindings for
7+ [ ReScript] ( https://rescript-lang.org ) bindings for
88[ ` @react-native-community/image-editor ` ] ( https://github.com/react-native-image-editor/react-native-image-editor ) .
99
1010Exposed as ` ReactNativeImageEditor ` module.
1111
12- ` @reason -react-native/image-editor ` X.y.\* means it's compatible with
12+ ` @rescript -react-native/image-editor ` X.y.\* means it's compatible with
1313` @react-native-community/image-editor ` X.y.\*
1414
1515## Installation
@@ -20,22 +20,22 @@ is properly installed & configured by following their installation instructions,
2020you can install the bindings:
2121
2222``` console
23- npm install @reason -react-native/image-editor
23+ npm install @rescript -react-native/image-editor
2424# or
25- yarn add @reason -react-native/image-editor
25+ yarn add @rescript -react-native/image-editor
2626```
2727
28- ` @reason -react-native/image-editor ` should be added to ` bs-dependencies ` in your
28+ ` @rescript -react-native/image-editor ` should be added to ` bs-dependencies ` in your
2929` bsconfig.json ` :
3030
3131``` diff
3232{
3333 //...
3434 "bs-dependencies": [
35- "reason- react",
36- "reason -react-native",
35+ "@rescript/ react",
36+ "rescript -react-native",
3737 // ...
38- + "@reason -react-native/image-editor"
38+ + "@rescript -react-native/image-editor"
3939 ],
4040 //...
4141}
@@ -50,23 +50,23 @@ successfully cropped, returns path of the resulting image as a `string`, wrapped
5050in a Promise. If a remote image cannot be downloaded or an image cannot be
5151cropped, the Promise will be rejected.
5252
53- ``` reason
53+ ``` rescript
5454cropImage: (source, cropData) => Js.Promise.t(string)
5555```
5656
5757### ` fromRequired `
5858
5959To convert a ` ReactNative.Packager.required ` object into [ ` source ` ] ( #source ) .
6060
61- ``` reason
61+ ``` rescript
6262fromRequired: ReactNative.Packager.required => source
6363```
6464
6565### ` fromUriSource `
6666
6767To convert a URI given as a ` string ` into [ ` source ` ] ( #source ) .
6868
69- ``` reason
69+ ``` rescript
7070fromUriSource: string => source
7171```
7272
@@ -82,7 +82,7 @@ An abstract type created using the [`fromRequired`](#fromrequired) and
8282An abstract type created using the constructor of the same name which takes
8383named arguments ` x ` and ` y ` of type ` int ` .
8484
85- ``` reason
85+ ``` rescript
8686offset: (~x: int, ~y: int) => offset
8787```
8888
@@ -91,7 +91,7 @@ offset: (~x: int, ~y: int) => offset
9191An abstract type created using the constructor of the same name which takes
9292named arguments ` width ` and ` height ` of type ` int ` .
9393
94- ``` reason
94+ ``` rescript
9595size: (~width: int, ~height: int) => size
9696```
9797
@@ -102,7 +102,7 @@ named arguments `offset` (of type `offset`) and `size` (of type `size`) and
102102optional arguments ` displaySize ` (of type ` size ` ) and ` resizeMode ` (one of
103103polymorphic variants `` `contain `` , `` `cover `` , `` `stretch `` ).
104104
105- ``` reason
105+ ``` rescript
106106cropData: (
107107 ~offset: offset,
108108 ~size: size,
@@ -114,7 +114,7 @@ cropData: (
114114
115115## Example
116116
117- ``` reason
117+ ``` rescript
118118open ReactNative;
119119
120120// hardcoding actual image dimensions
@@ -262,11 +262,11 @@ releases.
262262## Contribute
263263
264264Read the
265- [ contribution guidelines] ( https://github.com/reason -react-native/.github/blob/master/CONTRIBUTING.md )
265+ [ contribution guidelines] ( https://github.com/rescript -react-native/.github/blob/master/CONTRIBUTING.md )
266266before contributing.
267267
268268## Code of Conduct
269269
270270We want this community to be friendly and respectful to each other. Please read
271- [ our full code of conduct] ( https://github.com/reason -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
271+ [ our full code of conduct] ( https://github.com/rescript -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
272272so that you can understand what actions will and will not be tolerated.
0 commit comments