Skip to content

Commit 2d39d17

Browse files
committed
Normalize // View props 0.62.0
1 parent 55e07b7 commit 2d39d17

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/ReactNativeSafeAreaContext.re

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ module SafeAreaFrameContext = {
4949
module SafeAreaProvider = {
5050
open ReactNative;
5151
include NativeElement;
52-
type edgeInsets = View.edgeInsets;
5352

5453
[@react.component] [@bs.module "react-native-safe-area-context"]
5554
external make:
5655
(
5756
~initialMetrics: metrics=?,
58-
// View props
57+
// View props 0.62.0
5958
~accessibilityComponentType: [@bs.string] [
6059
| `none
6160
| `button
@@ -99,7 +98,7 @@ module SafeAreaProvider = {
9998
~accessibilityViewIsModal: bool=?,
10099
~accessible: bool=?,
101100
~collapsable: bool=?,
102-
~hitSlop: edgeInsets=?,
101+
~hitSlop: View.edgeInsets=?,
103102
~importantForAccessibility: [@bs.string] [
104103
| `auto
105104
| `yes
@@ -156,15 +155,14 @@ module SafeAreaProvider = {
156155
module SafeAreaView = {
157156
open ReactNative;
158157
include NativeElement;
159-
type edgeInsets = View.edgeInsets;
160158

161159
[@react.component] [@bs.module "react-native-safe-area-context"]
162160
external make:
163161
(
164162
~ref: ref=?,
165163
~edges: array(string)=?,
166164
~mode: [@bs.string] [ | `padding | `margin]=?,
167-
// View props
165+
// View props 0.62.0
168166
~accessibilityComponentType: [@bs.string] [
169167
| `none
170168
| `button
@@ -208,7 +206,7 @@ module SafeAreaView = {
208206
~accessibilityViewIsModal: bool=?,
209207
~accessible: bool=?,
210208
~collapsable: bool=?,
211-
~hitSlop: edgeInsets=?,
209+
~hitSlop: View.edgeInsets=?,
212210
~importantForAccessibility: [@bs.string] [
213211
| `auto
214212
| `yes

0 commit comments

Comments
 (0)