|
| 1 | +--- |
| 2 | +id: components/TabbarIOS |
| 3 | +title: TabbarIOS |
| 4 | +wip: true |
| 5 | +--- |
| 6 | + |
| 7 | +```reason |
| 8 | +type element; |
| 9 | +type ref = React.Ref.t(Js.nullable(element)); |
| 10 | +
|
| 11 | +[@react.component] [@bs.module "react-native"] |
| 12 | +external make: |
| 13 | + ( |
| 14 | + ~ref: ref=?, |
| 15 | + // TabBarIOS props |
| 16 | + ~barStyle: [@bs.string] [ | `default | `black]=?, |
| 17 | + ~barTintColor: Style.color=?, |
| 18 | + ~itemPositioning: [@bs.string] [ | `fill | `center | `auto]=?, |
| 19 | + ~tintColor: Style.color=?, |
| 20 | + ~translucent: bool=?, |
| 21 | + ~unselectedItemTintColor: Style.color=?, |
| 22 | + ~unselectedTintColor: Style.color=?, |
| 23 | + // View props |
| 24 | + ~accessibilityComponentType: [@bs.string] [ |
| 25 | + | `none |
| 26 | + | `button |
| 27 | + | `radiobutton_checked |
| 28 | + | `radiobutton_unchecked |
| 29 | + ] |
| 30 | + =?, |
| 31 | + ~accessibilityElementsHidden: bool=?, |
| 32 | + ~accessibilityHint: string=?, |
| 33 | + ~accessibilityIgnoresInvertColors: bool=?, |
| 34 | + ~accessibilityLabel: string=?, |
| 35 | + ~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?, |
| 36 | + ~accessibilityRole: [@bs.string] [ |
| 37 | + | `none |
| 38 | + | `button |
| 39 | + | `link |
| 40 | + | `search |
| 41 | + | `image |
| 42 | + | `keyboardkey |
| 43 | + | `text |
| 44 | + | `adjustable |
| 45 | + | `header |
| 46 | + | `summary |
| 47 | + | `imagebutton |
| 48 | + ] |
| 49 | + =?, |
| 50 | + ~accessibilityStates: array(AccessibilityState.t)=?, |
| 51 | + ~accessibilityTraits: array(AccessibilityTrait.t)=?, |
| 52 | + ~accessibilityViewIsModal: bool=?, |
| 53 | + ~accessible: bool=?, |
| 54 | + ~collapsable: bool=?, |
| 55 | + ~hitSlop: Types.edgeInsets=?, |
| 56 | + ~importantForAccessibility: [@bs.string] [ |
| 57 | + | `auto |
| 58 | + | `yes |
| 59 | + | `no |
| 60 | + | [@bs.as "no-hide-descendants"] |
| 61 | + `noHideDescendants |
| 62 | + ] |
| 63 | + =?, |
| 64 | + ~nativeID: string=?, |
| 65 | + ~needsOffscreenAlphaCompositing: bool=?, |
| 66 | + ~onAccessibilityTap: unit => unit=?, |
| 67 | + ~onLayout: Event.layoutEvent => unit=?, |
| 68 | + ~onMagicTap: unit => unit=?, |
| 69 | + // Gesture Responder props |
| 70 | + ~onMoveShouldSetResponder: Event.pressEvent => bool=?, |
| 71 | + ~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?, |
| 72 | + ~onResponderGrant: Event.pressEvent => unit=?, |
| 73 | + ~onResponderMove: Event.pressEvent => unit=?, |
| 74 | + ~onResponderReject: Event.pressEvent => unit=?, |
| 75 | + ~onResponderRelease: Event.pressEvent => unit=?, |
| 76 | + ~onResponderTerminate: Event.pressEvent => unit=?, |
| 77 | + ~onResponderTerminationRequest: Event.pressEvent => unit=?, |
| 78 | + ~onStartShouldSetResponder: Event.pressEvent => bool=?, |
| 79 | + ~onStartShouldSetResponderCapture: Event.pressEvent => bool=?, |
| 80 | + ~pointerEvents: [@bs.string] [ |
| 81 | + | `auto |
| 82 | + | `none |
| 83 | + | [@bs.as "box-none"] `boxNone |
| 84 | + | [@bs.as "box-only"] `boxOnly |
| 85 | + ] |
| 86 | + =?, |
| 87 | + ~removeClippedSubviews: bool=?, |
| 88 | + ~renderToHardwareTextureAndroid: bool=?, |
| 89 | + ~shouldRasterizeIOS: bool=?, |
| 90 | + ~style: Style.t=?, |
| 91 | + ~testID: string=?, |
| 92 | + ~children: React.element=? |
| 93 | + ) => |
| 94 | + React.element = |
| 95 | + "TabBarIOS"; |
| 96 | +
|
| 97 | +module Item = { |
| 98 | + type element; |
| 99 | + type ref = React.Ref.t(Js.nullable(element)); |
| 100 | +
|
| 101 | + [@react.component] [@bs.module "react-native"] [@bs.scope "TabBarIOS"] |
| 102 | + external make: |
| 103 | + ( |
| 104 | + ~ref: ref=?, |
| 105 | + // TabBarIOS item props |
| 106 | + ~selected: bool=?, |
| 107 | + ~badge: string=?, |
| 108 | + ~icon: Image.Source.t=?, |
| 109 | + ~onPress: unit => unit=?, |
| 110 | + ~renderAsOriginal: bool=?, |
| 111 | + ~badgeColor: string=?, |
| 112 | + ~selectedIcon: Image.Source.t=?, |
| 113 | + ~systemIcon: [@bs.string] [ |
| 114 | + | `bookmarks |
| 115 | + | `contacts |
| 116 | + | `downloads |
| 117 | + | `favourites |
| 118 | + | `featured |
| 119 | + | `history |
| 120 | + | `more |
| 121 | + | `mostRecent |
| 122 | + | `mostViewed |
| 123 | + | `recents |
| 124 | + | `search |
| 125 | + | `topRated |
| 126 | + ] |
| 127 | + =?, |
| 128 | + ~title: string=?, |
| 129 | + ~isTVSelectable: bool=?, |
| 130 | + // View props |
| 131 | + ~accessibilityComponentType: [@bs.string] [ |
| 132 | + | `none |
| 133 | + | `button |
| 134 | + | `radiobutton_checked |
| 135 | + | `radiobutton_unchecked |
| 136 | + ] |
| 137 | + =?, |
| 138 | + ~accessibilityElementsHidden: bool=?, |
| 139 | + ~accessibilityHint: string=?, |
| 140 | + ~accessibilityIgnoresInvertColors: bool=?, |
| 141 | + ~accessibilityLabel: string=?, |
| 142 | + ~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive] |
| 143 | + =?, |
| 144 | + ~accessibilityRole: [@bs.string] [ |
| 145 | + | `none |
| 146 | + | `button |
| 147 | + | `link |
| 148 | + | `search |
| 149 | + | `image |
| 150 | + | `keyboardkey |
| 151 | + | `text |
| 152 | + | `adjustable |
| 153 | + | `header |
| 154 | + | `summary |
| 155 | + | `imagebutton |
| 156 | + ] |
| 157 | + =?, |
| 158 | + ~accessibilityStates: array(AccessibilityState.t)=?, |
| 159 | + ~accessibilityTraits: array(AccessibilityTrait.t)=?, |
| 160 | + ~accessibilityViewIsModal: bool=?, |
| 161 | + ~accessible: bool=?, |
| 162 | + ~collapsable: bool=?, |
| 163 | + ~hitSlop: Types.edgeInsets=?, |
| 164 | + ~importantForAccessibility: [@bs.string] [ |
| 165 | + | `auto |
| 166 | + | `yes |
| 167 | + | `no |
| 168 | + | [@bs.as "no-hide-descendants"] |
| 169 | + `noHideDescendants |
| 170 | + ] |
| 171 | + =?, |
| 172 | + ~nativeID: string=?, |
| 173 | + ~needsOffscreenAlphaCompositing: bool=?, |
| 174 | + ~onAccessibilityTap: unit => unit=?, |
| 175 | + ~onLayout: Event.layoutEvent => unit=?, |
| 176 | + ~onMagicTap: unit => unit=?, |
| 177 | + // Gesture Responder props |
| 178 | + ~onMoveShouldSetResponder: Event.pressEvent => bool=?, |
| 179 | + ~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?, |
| 180 | + ~onResponderGrant: Event.pressEvent => unit=?, |
| 181 | + ~onResponderMove: Event.pressEvent => unit=?, |
| 182 | + ~onResponderReject: Event.pressEvent => unit=?, |
| 183 | + ~onResponderRelease: Event.pressEvent => unit=?, |
| 184 | + ~onResponderTerminate: Event.pressEvent => unit=?, |
| 185 | + ~onResponderTerminationRequest: Event.pressEvent => unit=?, |
| 186 | + ~onStartShouldSetResponder: Event.pressEvent => bool=?, |
| 187 | + ~onStartShouldSetResponderCapture: Event.pressEvent => bool=?, |
| 188 | + ~pointerEvents: [@bs.string] [ |
| 189 | + | `auto |
| 190 | + | `none |
| 191 | + | [@bs.as "box-none"] `boxNone |
| 192 | + | [@bs.as "box-only"] `boxOnly |
| 193 | + ] |
| 194 | + =?, |
| 195 | + ~removeClippedSubviews: bool=?, |
| 196 | + ~renderToHardwareTextureAndroid: bool=?, |
| 197 | + ~shouldRasterizeIOS: bool=?, |
| 198 | + ~style: Style.t=?, |
| 199 | + ~testID: string=? |
| 200 | + ) => |
| 201 | + React.element = |
| 202 | + "Item"; |
| 203 | +}; |
| 204 | +``` |
0 commit comments