Skip to content

Commit e097aec

Browse files
committed
1 parent 3d521a3 commit e097aec

File tree

3 files changed

+17
-77
lines changed

3 files changed

+17
-77
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"peerDependencies": {
88
"react-native-safe-area-context": "^3.0.0",
99
"reason-react": "^0.9.0",
10-
"reason-react-native": "^0.62.0"
10+
"reason-react-native": "^0.63.0"
1111
},
1212
"repository": "https://github.com/reason-react-native/safe-area-context.git",
1313
"license": "MIT",
@@ -44,7 +44,7 @@
4444
"npmpub": "^5.0.0",
4545
"prettier": "^2.0.0",
4646
"reason-react": "^0.9.0",
47-
"reason-react-native": "^0.62.0"
47+
"reason-react-native": "^0.63.0"
4848
},
4949
"prettier": {
5050
"trailingComma": "all"

src/ReactNativeSafeAreaContext.re

Lines changed: 11 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -54,46 +54,15 @@ module SafeAreaProvider = {
5454
external make:
5555
(
5656
~initialMetrics: metrics=?,
57-
// View props 0.62.0
58-
~accessibilityComponentType: [@bs.string] [
59-
| `none
60-
| `button
61-
| `radiobutton_checked
62-
| `radiobutton_unchecked
63-
]
64-
=?,
57+
// View props 0.63.0
58+
~accessibilityActions: array(Accessibility.actionInfo)=?,
6559
~accessibilityElementsHidden: bool=?,
6660
~accessibilityHint: string=?,
6761
~accessibilityIgnoresInvertColors: bool=?,
6862
~accessibilityLabel: string=?,
69-
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]
70-
=?,
71-
~accessibilityRole: [@bs.string] [
72-
| `none
73-
| `button
74-
| `link
75-
| `search
76-
| `image
77-
| `keyboardkey
78-
| `text
79-
| `adjustable
80-
| `header
81-
| `summary
82-
| `imagebutton
83-
| `article
84-
| `banner
85-
| `complementary
86-
| `contentinfo
87-
| `form
88-
| `list
89-
| `listitem
90-
| `main
91-
| `navigation
92-
| `region
93-
]
94-
=?,
63+
~accessibilityLiveRegion: Accessibility.liveRegion=?,
64+
~accessibilityRole: Accessibility.role=?,
9565
~accessibilityState: Accessibility.state=?,
96-
~accessibilityTraits: array(AccessibilityTrait.t)=?,
9766
~accessibilityValue: Accessibility.value=?,
9867
~accessibilityViewIsModal: bool=?,
9968
~accessible: bool=?,
@@ -109,6 +78,7 @@ module SafeAreaProvider = {
10978
=?,
11079
~nativeID: string=?,
11180
~needsOffscreenAlphaCompositing: bool=?,
81+
~onAccessibilityAction: Accessibility.actionEvent => unit=?,
11282
~onAccessibilityEscape: unit => unit=?,
11383
~onAccessibilityTap: unit => unit=?,
11484
~onLayout: Event.layoutEvent => unit=?,
@@ -161,47 +131,16 @@ module SafeAreaView = {
161131
(
162132
~ref: ref=?,
163133
~edges: array(string)=?,
164-
~mode: [@bs.string] [ | `padding | `margin]=?,
165-
// View props 0.62.0
166-
~accessibilityComponentType: [@bs.string] [
167-
| `none
168-
| `button
169-
| `radiobutton_checked
170-
| `radiobutton_unchecked
171-
]
172-
=?,
134+
~mode: [ | `padding | `margin]=?,
135+
// View props 0.63.0
136+
~accessibilityActions: array(Accessibility.actionInfo)=?,
173137
~accessibilityElementsHidden: bool=?,
174138
~accessibilityHint: string=?,
175139
~accessibilityIgnoresInvertColors: bool=?,
176140
~accessibilityLabel: string=?,
177-
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]
178-
=?,
179-
~accessibilityRole: [@bs.string] [
180-
| `none
181-
| `button
182-
| `link
183-
| `search
184-
| `image
185-
| `keyboardkey
186-
| `text
187-
| `adjustable
188-
| `header
189-
| `summary
190-
| `imagebutton
191-
| `article
192-
| `banner
193-
| `complementary
194-
| `contentinfo
195-
| `form
196-
| `list
197-
| `listitem
198-
| `main
199-
| `navigation
200-
| `region
201-
]
202-
=?,
141+
~accessibilityLiveRegion: Accessibility.liveRegion=?,
142+
~accessibilityRole: Accessibility.role=?,
203143
~accessibilityState: Accessibility.state=?,
204-
~accessibilityTraits: array(AccessibilityTrait.t)=?,
205144
~accessibilityValue: Accessibility.value=?,
206145
~accessibilityViewIsModal: bool=?,
207146
~accessible: bool=?,
@@ -217,6 +156,7 @@ module SafeAreaView = {
217156
=?,
218157
~nativeID: string=?,
219158
~needsOffscreenAlphaCompositing: bool=?,
159+
~onAccessibilityAction: Accessibility.actionEvent => unit=?,
220160
~onAccessibilityEscape: unit => unit=?,
221161
~onAccessibilityTap: unit => unit=?,
222162
~onLayout: Event.layoutEvent => unit=?,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,10 +1111,10 @@ readjson@^2.0.1:
11111111
dependencies:
11121112
try-catch "^3.0.0"
11131113

1114-
reason-react-native@^0.62.0:
1115-
version "0.62.0"
1116-
resolved "https://registry.yarnpkg.com/reason-react-native/-/reason-react-native-0.62.0.tgz#0f10e442a5bbb1a05124c9f595fed79673b0218a"
1117-
integrity sha512-tq13KJHk0D0otBviH9DJvejdcncxhCu8qR+AAiOWq4oQBC0cm9Zrl6+h+Wi+80pc9Cbe8KyMhcZh9N7e/X2dFA==
1114+
reason-react-native@^0.63.0:
1115+
version "0.63.0"
1116+
resolved "https://registry.yarnpkg.com/reason-react-native/-/reason-react-native-0.63.0.tgz#08de85136a41809b9a66cac066d4ea6975406000"
1117+
integrity sha512-rE1OOph5Jxceost2ahdvX+VXJ2RPNyefX9FMXa/OXgqmLKjFeZuyVOySUj41UoohOYyKmZWbgansDGccwYrdUQ==
11181118

11191119
reason-react@^0.9.0:
11201120
version "0.9.1"

0 commit comments

Comments
 (0)