forked from facebook/react-native
-
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.
Merge pull request facebook#64 from szymonzmyslony/master
Added segmentedControllOSRe
- Loading branch information
Showing
3 changed files
with
117 additions
and
0 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,66 @@ | ||
external view : ReasonReact.reactClass = "SegmentedControlIOS" [@@bs.module "react-native"]; | ||
|
||
let make | ||
::values | ||
::selectedIndex=? | ||
::onChange=? | ||
::enabled=? | ||
::momentary=? | ||
::tintColor=? | ||
::onValueChange=? | ||
::accessibilityLabel=? | ||
::accessible=? | ||
::hitSlop=? | ||
::onAccessibilityTap=? | ||
::onLayout=? | ||
::onMagicTap=? | ||
::responderHandlers=? | ||
::pointerEvents=? | ||
::removeClippedSubviews=? | ||
::style=? | ||
::testID=? | ||
::accessibilityComponentType=? | ||
::accessibilityLiveRegion=? | ||
::collapsable=? | ||
::importantForAccessibility=? | ||
::needsOffscreenAlphaCompositing=? | ||
::renderToHardwareTextureAndroid=? | ||
::accessibilityTraits=? | ||
::accessibilityViewIsModal=? | ||
::shouldRasterizeIOS=? => | ||
ReasonReact.wrapJsForReason | ||
reactClass::view | ||
props::( | ||
Props.extendView | ||
Js.Undefined.( | ||
{ | ||
"enabled": from_opt @@ UtilsRN.optBoolToOptJsBoolean enabled, | ||
"momentary": from_opt @@ UtilsRN.optBoolToOptJsBoolean momentary, | ||
"tintColor": from_opt tintColor, | ||
"values": Array.of_list values, | ||
"selectedIndex": from_opt selectedIndex, | ||
"onChange": from_opt onChange, | ||
"onValueChange": from_opt onValueChange | ||
} | ||
) | ||
::?accessibilityLabel | ||
::?accessible | ||
::?hitSlop | ||
::?onAccessibilityTap | ||
::?onLayout | ||
::?onMagicTap | ||
::?responderHandlers | ||
::?pointerEvents | ||
::?removeClippedSubviews | ||
::?style | ||
::?testID | ||
::?accessibilityComponentType | ||
::?accessibilityLiveRegion | ||
::?collapsable | ||
::?importantForAccessibility | ||
::?needsOffscreenAlphaCompositing | ||
::?renderToHardwareTextureAndroid | ||
::?accessibilityTraits | ||
::?accessibilityViewIsModal | ||
::?shouldRasterizeIOS | ||
); |
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,49 @@ | ||
let make: | ||
values::list string => | ||
selectedIndex::int? => | ||
onChange::(RNEvent.t => unit)? => | ||
enabled::bool? => | ||
momentary::bool? => | ||
tintColor::string? => | ||
onValueChange::(string => unit)? => | ||
accessibilityLabel::ReasonReact.reactElement? => | ||
accessible::bool? => | ||
hitSlop::TypesRN.insets? => | ||
onAccessibilityTap::(unit => unit)? => | ||
onLayout::(RNEvent.NativeLayoutEvent.t => unit)? => | ||
onMagicTap::(unit => unit)? => | ||
responderHandlers::Props.touchResponderHandlers? => | ||
pointerEvents::[ | `auto | `none | `boxNone | `boxOnly]? => | ||
removeClippedSubviews::bool? => | ||
style::StyleRe.t? => | ||
testID::string? => | ||
accessibilityComponentType::[ | `none | `button | `radiobutton_checked | `radiobutton_unchecked]? => | ||
accessibilityLiveRegion::[ | `none | `polite | `assertive]? => | ||
collapsable::bool? => | ||
importantForAccessibility::[ | `auto | `yes | `no | `noHideDescendants]? => | ||
needsOffscreenAlphaCompositing::bool? => | ||
renderToHardwareTextureAndroid::bool? => | ||
accessibilityTraits:: | ||
list [ | ||
| `none | ||
| `button | ||
| `link | ||
| `header | ||
| `search | ||
| `image | ||
| `selected | ||
| `plays | ||
| `key | ||
| `text | ||
| `summary | ||
| `disabled | ||
| `frequentUpdates | ||
| `startsMedia | ||
| `adjustable | ||
| `allowsDirectInteraction | ||
| `pageTurn | ||
]? => | ||
accessibilityViewIsModal::bool? => | ||
shouldRasterizeIOS::bool? => | ||
array ReasonReact.reactElement => | ||
ReasonReact.component ReasonReact.stateless ReasonReact.noRetainedProps; |
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