Skip to content

Commit 4b05fa1

Browse files
committed
4.6.0
1 parent a1dc675 commit 4b05fa1

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog of `@rescript-react-native/safe-area-context`
22

3+
## 4.6.0 - 2024-10-25
4+
5+
- update to rescript 11 and rescript-react-native 0.73 [f2c6ed3](https://github.com/rescript-react-native/rescript-react-native/commit/f2c6ed3) by [Freddy03h](https://github.com/Freddy03h)
6+
- update SafeAreaView edges prop to use [edgeMode](https://github.com/th3rdwave/react-native-safe-area-context?tab=readme-ov-file#edges) [a1dc675](https://github.com/rescript-react-native/rescript-react-native/commit/a1dc675) by [Freddy03h](https://github.com/Freddy03h)
7+
38
## 4.1.0 - 2024-04-08
49

510
- rescript 10, @rescript/react 11 and jsx 4 [#9](https://github.com/rescript-react-native/safe-area-context/pull/9) by [@DCKT](https://github.com/DCKT)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ See <https://github.com/th3rdwave/react-native-safe-area-context#optimization>
9090
open ReactNative;
9191
open ReactNativeSafeAreaContext;
9292
93-
[@react.component]
93+
@react.component
9494
let make = () => {
9595
<SafeAreaProvider /*initialMetrics={...}*/>
9696
// your app...
@@ -108,7 +108,7 @@ See <https://github.com/th3rdwave/react-native-safe-area-context#web-ssr> for
108108
open ReactNative;
109109
open ReactNativeSafeAreaContext;
110110
111-
[@react.component]
111+
@react.component
112112
let make = () => {
113113
let insets = useSafeAreaInsets();
114114
<View style=Style.(style(~paddingTop=insets.top, ())) />;
@@ -121,7 +121,7 @@ let make = () => {
121121
open ReactNative;
122122
open ReactNativeSafeAreaContext;
123123
124-
[@react.component]
124+
@react.component
125125
let make = () => {
126126
let frame = useSafeAreaFrame();
127127
<View style=Style.(style(~height=frame.height, ())) />;
@@ -134,7 +134,7 @@ let make = () => {
134134
open ReactNative;
135135
open ReactNativeSafeAreaContext;
136136
137-
[@react.component]
137+
@react.component
138138
let make = () => {
139139
<SafeAreaInsetsContext.Consumer>
140140
// your component, handy for classes
@@ -149,7 +149,7 @@ let make = () => {
149149
open ReactNative;
150150
open ReactNativeSafeAreaContext;
151151
152-
[@react.component]
152+
@react.component
153153
let make = () => {
154154
<SafeAreaView>
155155
<View />

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@rescript-react-native/safe-area-context",
33
"description": "ReScript bindings for react-native-safe-area-context.",
4-
"version": "4.1.0",
4+
"version": "4.6.0",
55
"publishConfig": {
66
"access": "public"
77
},
88
"peerDependencies": {
9-
"react-native-safe-area-context": ">=4.1.0",
9+
"react-native-safe-area-context": ">=4.6.0",
1010
"@rescript/react": ">=0.12.0",
1111
"rescript-react-native": ">=0.73.1"
1212
},

0 commit comments

Comments
 (0)