-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
911 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
90861 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
####{BSB GENERATED: NO EDIT | ||
FLG -ppx '/Users/prisc_000/Downloads/react-native-web-test/node_modules/bs-platform/lib/reactjs_jsx_ppx_2.exe' | ||
FLG -ppx /Users/prisc_000/Downloads/react-native-web-test/node_modules/bs-platform/lib/bsppx.exe | ||
S /Users/prisc_000/Downloads/react-native-web-test/node_modules/bs-platform/lib/ocaml | ||
B /Users/prisc_000/Downloads/react-native-web-test/node_modules/bs-platform/lib/ocaml | ||
FLG -ppx '/Users/prisc_000/working/RNWEB/reason-react-native-web-demo/node_modules/bs-platform/lib/reactjs_jsx_ppx_2.exe' | ||
FLG -ppx /Users/prisc_000/working/RNWEB/reason-react-native-web-demo/node_modules/bs-platform/lib/bsppx.exe | ||
S /Users/prisc_000/working/RNWEB/reason-react-native-web-demo/node_modules/bs-platform/lib/ocaml | ||
B /Users/prisc_000/working/RNWEB/reason-react-native-web-demo/node_modules/bs-platform/lib/ocaml | ||
FLG -nostdlib -color always | ||
FLG -w -30-40+6+7+27+32..39+44+45+101 | ||
S /Users/prisc_000/Downloads/react-native-web-test/node_modules/bs-react-native/lib/ocaml | ||
B /Users/prisc_000/Downloads/react-native-web-test/node_modules/bs-react-native/lib/ocaml | ||
S /Users/prisc_000/Downloads/react-native-web-test/node_modules/reason-react/lib/ocaml | ||
B /Users/prisc_000/Downloads/react-native-web-test/node_modules/reason-react/lib/ocaml | ||
S /Users/prisc_000/working/RNWEB/reason-react-native-web-demo/node_modules/bs-react-native/lib/ocaml | ||
B /Users/prisc_000/working/RNWEB/reason-react-native-web-demo/node_modules/bs-react-native/lib/ocaml | ||
S /Users/prisc_000/working/RNWEB/reason-react-native-web-demo/node_modules/reason-react/lib/ocaml | ||
B /Users/prisc_000/working/RNWEB/reason-react-native-web-demo/node_modules/reason-react/lib/ocaml | ||
S src | ||
B lib/bs/src | ||
S src/BsReactNativeWeb | ||
B lib/bs/src/BsReactNativeWeb | ||
S src/BsReactNativeWeb/private | ||
B lib/bs/src/BsReactNativeWeb/private | ||
S src/styles | ||
B lib/bs/src/styles | ||
####BSB GENERATED: NO EDIT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
module type TextComponent = { | ||
let make: | ||
( | ||
~accessibilityRole: string=?, | ||
~accessible: bool=?, | ||
~allowFontScaling: bool=?, | ||
~ellipsizeMode: [ | `clip | `head | `middle | `tail]=?, | ||
~numberOfLines: int=?, | ||
~onLayout: BsReactNative.RNEvent.NativeLayoutEvent.t => unit=?, | ||
~onLongPress: unit => unit=?, | ||
~onPress: unit => unit=?, | ||
~pressRetentionOffset: BsReactNative.Types.insets=?, | ||
~selectable: bool=?, | ||
~style: BsReactNative.Style.t=?, | ||
~testID: string=?, | ||
~selectionColor: string=?, | ||
~textBreakStrategy: [ | `simple | `highQuality | `balanced]=?, | ||
~adjustsFontSizeToFit: bool=?, | ||
~minimumFontScale: float=?, | ||
~suppressHighlighting: bool=?, | ||
~value: string=?, | ||
array(ReasonReact.reactElement) | ||
) => | ||
ReasonReact.component( | ||
ReasonReact.stateless, | ||
ReasonReact.noRetainedProps, | ||
unit, | ||
); | ||
}; | ||
|
||
module type Impl = {let view: ReasonReact.reactClass;}; | ||
|
||
module CreateComponent = (Impl: Impl) : TextComponent => { | ||
let make = | ||
( | ||
~accessibilityRole=?, | ||
~accessible=?, | ||
~allowFontScaling=?, | ||
~ellipsizeMode=?, | ||
~numberOfLines=?, | ||
~onLayout=?, | ||
~onLongPress=?, | ||
~onPress=?, | ||
~pressRetentionOffset=?, | ||
~selectable=?, | ||
~style=?, | ||
~testID=?, | ||
~selectionColor=?, | ||
~textBreakStrategy=?, | ||
~adjustsFontSizeToFit=?, | ||
~minimumFontScale=?, | ||
~suppressHighlighting=?, | ||
~value=?, | ||
children, | ||
) => | ||
ReasonReact.wrapJsForReason( | ||
~reactClass=Impl.view, | ||
~props={ | ||
"accessibilityRole": accessibilityRole, | ||
"accessible": accessible, | ||
"allowFontScaling": allowFontScaling, | ||
"ellipsizeMode": | ||
UtilsRN.option_map( | ||
fun | ||
| `head => "head" | ||
| `middle => "middle" | ||
| `tail => "tail" | ||
| `clip => "clip", | ||
ellipsizeMode, | ||
), | ||
"numberOfLines": numberOfLines, | ||
"onLayout": onLayout, | ||
"onLongPress": onLongPress, | ||
"onPress": onPress, | ||
"pressRetentionOffset": pressRetentionOffset, | ||
"selectable": selectable, | ||
"style": style, | ||
"testID": testID, | ||
"selectionColor": selectionColor, | ||
"textBreakStrategy": | ||
UtilsRN.option_map( | ||
fun | ||
| `simple => "simple" | ||
| `highQuality => "highQuality" | ||
| `balanced => "balanced", | ||
textBreakStrategy, | ||
), | ||
"adjustsFontSizeToFit": adjustsFontSizeToFit, | ||
"minimumFontScale": minimumFontScale, | ||
"suppressHighlighting": suppressHighlighting, | ||
}, | ||
switch (value) { | ||
| Some(string) => | ||
Array.append([|ReasonReact.string(string)|], children) | ||
| None => children | ||
}, | ||
); | ||
}; | ||
|
||
include CreateComponent({ | ||
[@bs.module "react-native"] external view: ReasonReact.reactClass = "Text"; | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.