From 7b2a69cd6c403eab8f5f1e1b667c4fef8e6c6ae8 Mon Sep 17 00:00:00 2001 From: Ulrik Strid Date: Sat, 2 Sep 2017 07:49:55 +0200 Subject: [PATCH 1/3] Update packages --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 7e3c2ca78469e5..efb1ae11614209 100644 --- a/package.json +++ b/package.json @@ -2,23 +2,23 @@ "name": "bs-react-native", "version": "0.1.0", "scripts": { - "build": "bsb -make-world", - "start": "bsb -make-world -w", - "clean": "bsb -clean-world", - "test": "exit 0" + "build": "bsb -make-world", + "start": "bsb -make-world -w", + "clean": "bsb -clean-world", + "test": "exit 0" }, "license": "MIT", - "keywords": ["reason", "reasonml","bucklescript", "react-native"], + "keywords": ["reason", "reasonml", "bucklescript", "react-native"], "author": "", "repository": { "type": "git", "url": "https://github.com/reasonml-community/bs-react-native.git" }, "devDependencies": { - "bs-platform": "^1.9.0" + "bs-platform": "^1.9.1" }, "dependencies": { - "reason-react": "^0.2.3" + "reason-react": "^0.2.4" }, "peerDependencies": { "react-native": "^0.46.0" From 5c4600f628e16b036f520fc3d226db4db7bde64f Mon Sep 17 00:00:00 2001 From: Ulrik Strid Date: Sat, 2 Sep 2017 07:53:18 +0200 Subject: [PATCH 2/3] Update all interface files --- src/components/activityIndicatorRe.rei | 2 +- src/components/animatedComponentsRe.rei | 9 +++-- src/components/buttonRe.rei | 2 +- src/components/datePickerIOSRe.rei | 2 +- src/components/flatListRe.rei | 12 +++++-- src/components/imageRe.re | 33 ++++++++++++++----- src/components/imageRe.rei | 12 +++++-- src/components/modalRe.rei | 2 +- src/components/pickerRe.rei | 4 +-- src/components/refreshControlRe.rei | 2 +- src/components/scrollViewRe.rei | 9 +++-- src/components/sectionListRe.re | 2 +- src/components/sectionListRe.rei | 2 +- src/components/segmentedControllOSRe.rei | 2 +- src/components/sliderRe.rei | 2 +- src/components/statusBarRe.rei | 2 +- src/components/switchRe.rei | 2 +- src/components/tabBarIOSRe.rei | 4 +-- src/components/textInputRe.rei | 2 +- src/components/textRe.rei | 4 +-- src/components/touchableHighlightRe.rei | 2 +- src/components/touchableOpacityRe.rei | 2 +- src/components/touchableWithoutFeedbackRe.rei | 2 +- src/components/viewRe.rei | 2 +- src/components/webViewRe.rei | 2 +- 25 files changed, 77 insertions(+), 44 deletions(-) diff --git a/src/components/activityIndicatorRe.rei b/src/components/activityIndicatorRe.rei index 7ec09315519ee3..17eeb42d89a138 100644 --- a/src/components/activityIndicatorRe.rei +++ b/src/components/activityIndicatorRe.rei @@ -43,4 +43,4 @@ let make: accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/animatedComponentsRe.rei b/src/components/animatedComponentsRe.rei index d7504d55ea8ae0..491f9267fd8034 100644 --- a/src/components/animatedComponentsRe.rei +++ b/src/components/animatedComponentsRe.rei @@ -6,7 +6,10 @@ module Text: TextRe.TextComponent; module ScrollView: { let onScrollUpdater: x::'a? => y::'b? => native::bool? => unit => RNEvent.NativeEvent.t => unit; - type point = {x: float, y: float}; + type point = { + x: float, + y: float + }; let scrollTo: ReasonReact.reactRef => x::int => y::int => animated::bool => unit; let scrollToEnd: ReasonReact.reactRef => animated::bool => unit; let make: @@ -84,5 +87,5 @@ module ScrollView: { snapToAlignment::[ | `center | `end_ | `start]? => zoomScale::float? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; -}; \ No newline at end of file + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; +}; diff --git a/src/components/buttonRe.rei b/src/components/buttonRe.rei index 4069fe72e9d28a..b4117260922e83 100644 --- a/src/components/buttonRe.rei +++ b/src/components/buttonRe.rei @@ -6,4 +6,4 @@ let make: testID::string? => title::string? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/datePickerIOSRe.rei b/src/components/datePickerIOSRe.rei index 351ae7cabc8a92..17e19563f362e7 100644 --- a/src/components/datePickerIOSRe.rei +++ b/src/components/datePickerIOSRe.rei @@ -46,4 +46,4 @@ let make: accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/flatListRe.rei b/src/components/flatListRe.rei index a0e69a828b82c1..29444d81da4f60 100644 --- a/src/components/flatListRe.rei +++ b/src/components/flatListRe.rei @@ -21,7 +21,10 @@ let scrollToOffset: ReasonReact.reactRef => offset::int? => animated::Js.boolean external recordInteraction : ReasonReact.reactRef => unit = "" [@@bs.send]; -type renderBag 'item = {item: 'item, index: int}; +type renderBag 'item = { + item: 'item, + index: int +}; type renderItem 'item; @@ -29,7 +32,10 @@ let renderItem: (renderBag 'item => ReasonReact.reactElement) => renderItem 'ite type separatorComponent 'item; -type separatorProps 'item = {highlighted: bool, leadingItem: option 'item}; +type separatorProps 'item = { + highlighted: bool, + leadingItem: option 'item +}; let separatorComponent: (separatorProps 'item => ReasonReact.reactElement) => separatorComponent 'item; @@ -81,4 +87,4 @@ let make: removeClippedSubviews::bool? => viewabilityConfig::Js.t {.}? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; \ No newline at end of file + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/imageRe.re b/src/components/imageRe.re index d340b287abe2b0..5a54fe0905dd2b 100644 --- a/src/components/imageRe.re +++ b/src/components/imageRe.re @@ -22,7 +22,13 @@ module type ImageComponent = { type defaultSource = | URI defaultURISource | Required PackagerRe.required; - module Event: {type error; type progress = {loaded: float, total: float};}; + module Event: { + type error; + type progress = { + loaded: float, + total: float + }; + }; let make: onError::(Event.error => unit)? => onLayout::(RNEvent.NativeLayoutEvent.t => unit)? => @@ -42,7 +48,7 @@ module type ImageComponent = { onPartialLoad::(unit => unit)? => onProgress::(Event.progress => unit)? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; module CreateComponent (Impl: ViewRe.Impl) :ImageComponent => { @@ -56,11 +62,18 @@ module CreateComponent (Impl: ViewRe.Impl) :ImageComponent => { /* * Be careful not to refmt this away !!! * https://github.com/facebook/reason/issues/821 (resolved, not released yet) - * + * * This is hot it should look (or to copy it in again ^^) * cache::[ | `default | `reload | `forceCache [@bs.as "force-cache"] | `onlyIfCached [@bs.as "only-if-cached"]] [@bs.string]? => */ - cache::[ | `default | `reload | `forceCache [@bs.as "force-cache"] | `onlyIfCached [@bs.as "only-if-cached"]] [@bs.string]? => + cache:: + [ + | `default + | `reload + | `forceCache [@bs.as "force-cache"] + | `onlyIfCached [@bs.as "only-if-cached"] + ] + [@bs.string]? => scale::float? => width::float? => height::float? => @@ -83,7 +96,10 @@ module CreateComponent (Impl: ViewRe.Impl) :ImageComponent => { module Event = { type t; type error; - type progress = {loaded: float, total: float}; + type progress = { + loaded: float, + total: float + }; external progress : t => progress = "nativeEvent" [@@bs.get]; }; let encodeResizeMode x => @@ -105,8 +121,7 @@ module CreateComponent (Impl: ViewRe.Impl) :ImageComponent => { | `auto => "auto" | `resize => "resize" | `scale => "scale" - }; - + }; let encodeDefaultSource (x: defaultSource) => switch x { | URI x => rawImageSourceJS x @@ -149,7 +164,7 @@ module CreateComponent (Impl: ViewRe.Impl) :ImageComponent => { "accessible": from_opt (UtilsRN.optBoolToOptJsBoolean accessible), "blurRadius": from_opt blurRadius, "capInsets": from_opt capInsets, - "defaultSource":from_opt (UtilsRN.option_map encodeDefaultSource defaultSource), + "defaultSource": from_opt (UtilsRN.option_map encodeDefaultSource defaultSource), "onPartialLoad": from_opt onPartialLoad, "onProgress": from_opt (UtilsRN.option_map (fun x y => x (Event.progress y)) onProgress) @@ -160,4 +175,4 @@ module CreateComponent (Impl: ViewRe.Impl) :ImageComponent => { module Image = CreateComponent { external view : ReasonReact.reactClass = "Image" [@@bs.module "react-native"]; - }; \ No newline at end of file + }; diff --git a/src/components/imageRe.rei b/src/components/imageRe.rei index 8627a28e18fab7..eb2afd908be813 100644 --- a/src/components/imageRe.rei +++ b/src/components/imageRe.rei @@ -22,7 +22,13 @@ module type ImageComponent = { type defaultSource = | URI defaultURISource | Required PackagerRe.required; - module Event: {type error; type progress = {loaded: float, total: float};}; + module Event: { + type error; + type progress = { + loaded: float, + total: float + }; + }; let make: onError::(Event.error => unit)? => onLayout::(RNEvent.NativeLayoutEvent.t => unit)? => @@ -42,9 +48,9 @@ module type ImageComponent = { onPartialLoad::(unit => unit)? => onProgress::(Event.progress => unit)? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; module CreateComponent: (Impl: ViewRe.Impl) => ImageComponent; -module Image: ImageComponent; \ No newline at end of file +module Image: ImageComponent; diff --git a/src/components/modalRe.rei b/src/components/modalRe.rei index eb67428d1a502d..873691fe87014d 100644 --- a/src/components/modalRe.rei +++ b/src/components/modalRe.rei @@ -9,4 +9,4 @@ let make: supportedOrientations:: [ | `landscape | `landscapeLeft | `landscapeRight | `portrait | `portraitUpsideDown]? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/pickerRe.rei b/src/components/pickerRe.rei index 36f37e493e3fba..b23c76740f4641 100644 --- a/src/components/pickerRe.rei +++ b/src/components/pickerRe.rei @@ -5,7 +5,7 @@ module Item: { value::'value? => testID::string? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; let make: @@ -55,4 +55,4 @@ let make: accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/refreshControlRe.rei b/src/components/refreshControlRe.rei index 4c5acb2fb0912b..bef1afb578a08e 100644 --- a/src/components/refreshControlRe.rei +++ b/src/components/refreshControlRe.rei @@ -48,4 +48,4 @@ let make: accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/scrollViewRe.rei b/src/components/scrollViewRe.rei index 59b3a0fc6acdf5..7c123990d0c576 100644 --- a/src/components/scrollViewRe.rei +++ b/src/components/scrollViewRe.rei @@ -1,5 +1,8 @@ module type ScrollViewComponent = { - type point = {x: float, y: float}; + type point = { + x: float, + y: float + }; let scrollTo: ReasonReact.reactRef => x::int => y::int => animated::bool => unit; let scrollToEnd: ReasonReact.reactRef => animated::bool => unit; let make: @@ -77,9 +80,9 @@ module type ScrollViewComponent = { snapToAlignment::[ | `center | `end_ | `start]? => zoomScale::float? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; module CreateComponent: (Impl: ViewRe.Impl) => ScrollViewComponent; -module ScrollView: ScrollViewComponent; \ No newline at end of file +module ScrollView: ScrollViewComponent; diff --git a/src/components/sectionListRe.re b/src/components/sectionListRe.re index 309d9acd3a4bc2..cc6a90cba667be 100644 --- a/src/components/sectionListRe.re +++ b/src/components/sectionListRe.re @@ -131,7 +131,7 @@ let make: renderSectionFooter::(Js.t {. section : section 'item} => ReasonReact.reactElement)? => stickySectionHeadersEnabled::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps = + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps () = fun ::sections ::renderItem ::keyExtractor diff --git a/src/components/sectionListRe.rei b/src/components/sectionListRe.rei index bbedc7522b020c..f7822b75327990 100644 --- a/src/components/sectionListRe.rei +++ b/src/components/sectionListRe.rei @@ -70,4 +70,4 @@ let make: renderSectionFooter::(Js.t {. section : section 'item} => ReasonReact.reactElement)? => stickySectionHeadersEnabled::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/segmentedControllOSRe.rei b/src/components/segmentedControllOSRe.rei index bba0885c2ea897..0fe9f19f6e50c4 100644 --- a/src/components/segmentedControllOSRe.rei +++ b/src/components/segmentedControllOSRe.rei @@ -46,4 +46,4 @@ let make: accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/sliderRe.rei b/src/components/sliderRe.rei index 0be1895af299d2..90fce79b69f0b1 100644 --- a/src/components/sliderRe.rei +++ b/src/components/sliderRe.rei @@ -53,4 +53,4 @@ let make: accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/statusBarRe.rei b/src/components/statusBarRe.rei index ae92466161daf7..38743b7d66e7a4 100644 --- a/src/components/statusBarRe.rei +++ b/src/components/statusBarRe.rei @@ -17,4 +17,4 @@ let make: networkActivityIndicatorVisible::bool? => showHideTransition::[ | `fade | `none | `slide]? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; \ No newline at end of file + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/switchRe.rei b/src/components/switchRe.rei index 913e9dd7adba6a..bd1ed100504124 100644 --- a/src/components/switchRe.rei +++ b/src/components/switchRe.rei @@ -45,4 +45,4 @@ let make: accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/tabBarIOSRe.rei b/src/components/tabBarIOSRe.rei index 05e2c10b733f76..679af600cbe6c4 100644 --- a/src/components/tabBarIOSRe.rei +++ b/src/components/tabBarIOSRe.rei @@ -50,7 +50,7 @@ module Item: { accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; let make: @@ -100,4 +100,4 @@ let make: accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; \ No newline at end of file + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/textInputRe.rei b/src/components/textInputRe.rei index 7967ba88521bae..2a439a13a3d3ad 100644 --- a/src/components/textInputRe.rei +++ b/src/components/textInputRe.rei @@ -115,4 +115,4 @@ let make: selectionState::'documentSelectionState? => spellCheck::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/textRe.rei b/src/components/textRe.rei index 5dec4e592758e3..6d4e8072d01dc1 100644 --- a/src/components/textRe.rei +++ b/src/components/textRe.rei @@ -18,9 +18,9 @@ module type TextComponent = { suppressHighlighting::bool? => value::string? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; module CreateComponent: (Impl: ViewRe.Impl) => TextComponent; -module Text: TextComponent; \ No newline at end of file +module Text: TextComponent; diff --git a/src/components/touchableHighlightRe.rei b/src/components/touchableHighlightRe.rei index 4d80ba99e02a43..2e1063b00247b4 100644 --- a/src/components/touchableHighlightRe.rei +++ b/src/components/touchableHighlightRe.rei @@ -39,4 +39,4 @@ let make: hasTVPreferredFocus::bool? => tvParallaxProperties::Js.t {.}? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; \ No newline at end of file + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/touchableOpacityRe.rei b/src/components/touchableOpacityRe.rei index e9c2a2b5b39329..718f8f02e14ea6 100644 --- a/src/components/touchableOpacityRe.rei +++ b/src/components/touchableOpacityRe.rei @@ -38,4 +38,4 @@ let make: focusedOpacity::float? => tvParallaxProperties::Js.t {.}? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/touchableWithoutFeedbackRe.rei b/src/components/touchableWithoutFeedbackRe.rei index c7a8bec691b0b0..42c9e743b2ce9a 100644 --- a/src/components/touchableWithoutFeedbackRe.rei +++ b/src/components/touchableWithoutFeedbackRe.rei @@ -32,4 +32,4 @@ let make: onPressOut::(unit => unit)? => pressRetentionOffset::TypesRN.insets? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; \ No newline at end of file + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; diff --git a/src/components/viewRe.rei b/src/components/viewRe.rei index 82b1810534e058..f28372567b6671 100644 --- a/src/components/viewRe.rei +++ b/src/components/viewRe.rei @@ -41,7 +41,7 @@ module type ViewComponent = { accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; module type Impl = {let view: ReasonReact.reactClass;}; diff --git a/src/components/webViewRe.rei b/src/components/webViewRe.rei index f5ad9614e3f4f0..ce565ff05edae7 100644 --- a/src/components/webViewRe.rei +++ b/src/components/webViewRe.rei @@ -143,4 +143,4 @@ let make: onShouldStartLoadWithRequest::(iOSLoadRequestEvent => bool)? => scrollEnabled::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; \ No newline at end of file + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; From 0d706fc54ff78c8f0640a85f3573111b3b99dd01 Mon Sep 17 00:00:00 2001 From: Ulrik Strid Date: Sat, 2 Sep 2017 07:54:51 +0200 Subject: [PATCH 3/3] Update re files --- src/components/scrollViewRe.re | 14 ++++++++++---- src/components/sectionListRe.re | 10 +++++----- src/components/textRe.re | 4 ++-- src/components/viewRe.re | 2 +- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/components/scrollViewRe.re b/src/components/scrollViewRe.re index 6b3af5b08909cb..3feb52336aefbc 100644 --- a/src/components/scrollViewRe.re +++ b/src/components/scrollViewRe.re @@ -1,5 +1,8 @@ module type ScrollViewComponent = { - type point = {x: float, y: float}; + type point = { + x: float, + y: float + }; let scrollTo: ReasonReact.reactRef => x::int => y::int => animated::bool => unit; let scrollToEnd: ReasonReact.reactRef => animated::bool => unit; let make: @@ -77,11 +80,14 @@ module type ScrollViewComponent = { snapToAlignment::[ | `center | `start | `end_]? => zoomScale::float? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; module CreateComponent (Impl: ViewRe.Impl) :ScrollViewComponent => { - type point = {x: float, y: float}; + type point = { + x: float, + y: float + }; external _scrollTo : ReasonReact.reactRef => Js.t {. x : int, y : int, animated : Js.boolean} => unit = "scrollTo" [@@bs.send]; @@ -291,4 +297,4 @@ module CreateComponent (Impl: ViewRe.Impl) :ScrollViewComponent => { module ScrollView = CreateComponent { external view : ReasonReact.reactClass = "ScrollView" [@@bs.module "react-native"]; - }; \ No newline at end of file + }; diff --git a/src/components/sectionListRe.re b/src/components/sectionListRe.re index cc6a90cba667be..290c5589a2143b 100644 --- a/src/components/sectionListRe.re +++ b/src/components/sectionListRe.re @@ -91,13 +91,13 @@ let separatorComponent highlighted: Js.to_bool jsSeparatorProps##highlighted, leadingItem: Js.Undefined.to_opt jsSeparatorProps##leadingItem, leadingSection: - Js.Undefined.to_opt jsSeparatorProps##leadingSection |> - UtilsRN.option_map jsSectionToSection, + Js.Undefined.to_opt jsSeparatorProps##leadingSection + |> UtilsRN.option_map jsSectionToSection, section: jsSectionToSection jsSeparatorProps##section, trailingItem: Js.Undefined.to_opt jsSeparatorProps##trailingItem, trailingSection: - Js.Undefined.to_opt jsSeparatorProps##trailingSection |> - UtilsRN.option_map jsSectionToSection + Js.Undefined.to_opt jsSeparatorProps##trailingSection + |> UtilsRN.option_map jsSectionToSection }; type viewToken 'item = @@ -131,7 +131,7 @@ let make: renderSectionFooter::(Js.t {. section : section 'item} => ReasonReact.reactElement)? => stickySectionHeadersEnabled::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps () = + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit = fun ::sections ::renderItem ::keyExtractor diff --git a/src/components/textRe.re b/src/components/textRe.re index bcf9cb5aab2890..54a3304b1390ad 100644 --- a/src/components/textRe.re +++ b/src/components/textRe.re @@ -18,7 +18,7 @@ module type TextComponent = { suppressHighlighting::bool? => value::string? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; module CreateComponent (Impl: ViewRe.Impl) :TextComponent => { @@ -96,4 +96,4 @@ module CreateComponent (Impl: ViewRe.Impl) :TextComponent => { module Text = CreateComponent { external view : ReasonReact.reactClass = "Text" [@@bs.module "react-native"]; - }; \ No newline at end of file + }; diff --git a/src/components/viewRe.re b/src/components/viewRe.re index 11e832fbf20137..3ed7758c44fdbb 100644 --- a/src/components/viewRe.re +++ b/src/components/viewRe.re @@ -41,7 +41,7 @@ module type ViewComponent = { accessibilityViewIsModal::bool? => shouldRasterizeIOS::bool? => array ReasonReact.reactElement => - ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; + ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps unit; }; module type Impl = {let view: ReasonReact.reactClass;};