Skip to content

Commit d799423

Browse files
committed
ReScript
1 parent b94d1b5 commit d799423

11 files changed

+246
-264
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ node_modules
99
# npm unused lock file (we use yarn.lock)
1010
package-lock.json
1111

12-
# ReScript / Reason / Ocaml artifacts
13-
#*.bs.js # we do want this files to ensure zero-cost
12+
# ReScript artifacts
13+
# *.bs.js # we do want this files to ensure zero-cost
1414
.bsb.lock
1515
**/lib/bs
1616
**/lib/ocaml

CHANGELOG.md

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

33
## 3.1.1 - 2020-11-18
44

@@ -7,7 +7,7 @@ Fix npm description
77
## 3.1.0 - 2020-11-12
88

99
- 3.1.0 compat
10-
- reason-react-native 0.63
10+
- rescript-react-native 0.63
1111
- rescript 8.2
1212

1313
## 3.0.0 - 2020-07-20

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 @reason-react-native contributors
3+
Copyright (c) 2019 @rescript-react-native contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# `@reason-react-native/safe-area-context`
1+
# `@rescript-react-native/safe-area-context`
22

3-
[![Build Status](https://github.com/reason-react-native/safe-area-context/workflows/Build/badge.svg)](https://github.com/reason-react-native/safe-area-context/actions)
4-
[![Version](https://img.shields.io/npm/v/@reason-react-native/safe-area-context.svg)](https://www.npmjs.com/@reason-react-native/safe-area-context)
5-
[![Chat](https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue)](https://reasonml-community.github.io/reason-react-native/discord/)
3+
[![Build Status](https://github.com/rescript-react-native/safe-area-context/workflows/Build/badge.svg)](https://github.com/rescript-react-native/safe-area-context/actions)
4+
[![Version](https://img.shields.io/npm/v/@rescript-react-native/safe-area-context.svg)](https://www.npmjs.com/@rescript-react-native/safe-area-context)
5+
[![ReScript Forum](https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org)](https://forum.rescript-lang.org/)
66

7-
[ReScript](https://rescript-lang.org) / [Reason](https://reasonml.github.io) bindings for
7+
[ReScript](https://rescript-lang.org) bindings for
88
[`react-native-safe-area-context`](https://github.com/th3rdwave/react-native-safe-area-context).
99

1010
Exposed as `ReactNativeSafeAreaContext` module.
1111

12-
`@reason-react-native/safe-area-context` X.y.\* means it's compatible with
12+
`@rescript-react-native/safe-area-context` X.y.\* means it's compatible with
1313
`react-native-safe-area-context` X.y.\*
1414

1515
## Installation
@@ -20,22 +20,22 @@ is properly installed & configured by following their installation instructions,
2020
you can install the bindings:
2121

2222
```console
23-
npm install @reason-react-native/safe-area-context
23+
npm install @rescript-react-native/safe-area-context
2424
# or
25-
yarn add @reason-react-native/safe-area-context
25+
yarn add @rescript-react-native/safe-area-context
2626
```
2727

28-
`@reason-react-native/safe-area-context` should be added to `bs-dependencies` in
28+
`@rescript-react-native/safe-area-context` should be added to `bs-dependencies` in
2929
your `bsconfig.json`:
3030

3131
```diff
3232
{
3333
//...
3434
"bs-dependencies": [
35-
"reason-react",
36-
"reason-react-native",
35+
"@rescript/react",
36+
"rescript-react-native",
3737
// ...
38-
+ "@reason-react-native/safe-area-context"
38+
+ "@rescript-react-native/safe-area-context"
3939
],
4040
//...
4141
}
@@ -47,7 +47,7 @@ your `bsconfig.json`:
4747

4848
#### `ReactNativeSafeAreaContext.insets`
4949

50-
```reason
50+
```rescript
5151
type insets = {
5252
top: float,
5353
bottom: float,
@@ -58,7 +58,7 @@ type insets = {
5858

5959
#### `ReactNativeSafeAreaContext.frame`
6060

61-
```reason
61+
```rescript
6262
type frame = {
6363
x: float,
6464
y: float,
@@ -69,7 +69,7 @@ type frame = {
6969

7070
#### `ReactNativeSafeAreaContext.metrics`
7171

72-
```reason
72+
```rescript
7373
type metrics = {
7474
insets,
7575
frame,
@@ -86,7 +86,7 @@ See <https://github.com/th3rdwave/react-native-safe-area-context#optimization>
8686

8787
#### `<ReactNativeSafeAreaContext.SafeAreaProvider>`
8888

89-
```reason
89+
```rescript
9090
open ReactNative;
9191
open ReactNativeSafeAreaContext;
9292
@@ -104,7 +104,7 @@ See <https://github.com/th3rdwave/react-native-safe-area-context#web-ssr> for
104104

105105
#### `ReactNativeSafeAreaContext.useSafeAreaInsets(): insets`
106106

107-
```reason
107+
```rescript
108108
open ReactNative;
109109
open ReactNativeSafeAreaContext;
110110
@@ -117,7 +117,7 @@ let make = () => {
117117

118118
#### `ReactNativeSafeAreaContext.useSafeAreaFrame(): frame`
119119

120-
```reason
120+
```rescript
121121
open ReactNative;
122122
open ReactNativeSafeAreaContext;
123123
@@ -130,7 +130,7 @@ let make = () => {
130130

131131
#### `<ReactNativeSafeAreaContext.SafeAreaInsetsContext.Consumer>`
132132

133-
```reason
133+
```rescript
134134
open ReactNative;
135135
open ReactNativeSafeAreaContext;
136136
@@ -145,7 +145,7 @@ let make = () => {
145145

146146
#### `<ReactNativeSafeAreaContext.SafeAreaView>`
147147

148-
```reason
148+
```rescript
149149
open ReactNative;
150150
open ReactNativeSafeAreaContext;
151151
@@ -169,11 +169,11 @@ releases.
169169
## Contribute
170170

171171
Read the
172-
[contribution guidelines](https://github.com/reason-react-native/.github/blob/master/CONTRIBUTING.md)
172+
[contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md)
173173
before contributing.
174174

175175
## Code of Conduct
176176

177177
We want this community to be friendly and respectful to each other. Please read
178-
[our full code of conduct](https://github.com/reason-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
178+
[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
179179
so that you can understand what actions will and will not be tolerated.

bsconfig.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
2-
"name": "@reason-react-native/safe-area-context",
3-
"refmt": 3,
4-
"reason": {
5-
"react-jsx": 3
6-
},
2+
"name": "@rescript-react-native/safe-area-context",
3+
"reason": { "react-jsx": 3 },
74
"package-specs": {
85
"module": "commonjs",
96
"in-source": true
@@ -16,8 +13,8 @@
1613
}
1714
],
1815
"bsc-flags": ["-bs-no-version-header"],
19-
"warnings" : {
20-
"error" : true
16+
"warnings": {
17+
"error": true
2118
},
22-
"bs-dependencies": ["reason-react", "reason-react-native"]
19+
"bs-dependencies": ["@rescript/react", "rescript-react-native"]
2320
}

package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
{
2-
"name": "@reason-react-native/safe-area-context",
2+
"name": "@rescript-react-native/safe-area-context",
33
"description": "ReScript bindings for react-native-safe-area-context.",
44
"version": "3.1.1",
55
"publishConfig": {
66
"access": "public"
77
},
88
"peerDependencies": {
99
"react-native-safe-area-context": "^3.1.0",
10-
"reason-react": "^0.9.0",
11-
"reason-react-native": "^0.63.0"
10+
"@rescript/react": "^0.10.0",
11+
"rescript-react-native": "^0.64.3"
1212
},
13-
"repository": "https://github.com/reason-react-native/safe-area-context.git",
13+
"repository": "https://github.com/rescript-react-native/safe-area-context.git",
1414
"license": "MIT",
1515
"keywords": [
1616
"rescript",
17-
"reason",
18-
"reasonml",
19-
"bucklescript",
2017
"react-native"
2118
],
2219
"files": [
2320
"*.md",
2421
"bsconfig.json",
25-
"src/**/*.re",
22+
"src/**/*.res",
23+
"src/**/*.resi",
2624
"src/**/*.js",
2725
"!src/**/*.bs.js"
2826
],
@@ -39,13 +37,13 @@
3937
"release": "npmpub"
4038
},
4139
"devDependencies": {
42-
"bs-platform": "^8.2.0",
40+
"bs-platform": "^9.0.0",
4341
"husky": "^4.0.0",
4442
"lint-staged": "^10.0.0",
4543
"npmpub": "^5.0.0",
4644
"prettier": "^2.0.0",
47-
"reason-react": "^0.9.0",
48-
"reason-react-native": "^0.63.0"
45+
"@rescript/react": "^0.10.0",
46+
"rescript-react-native": "^0.64.3"
4947
},
5048
"prettier": {
5149
"trailingComma": "all"

src/ReactNativeSafeAreaContext.bs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var NativeElement$ReactNative = require("reason-react-native/src/elements/NativeElement.bs.js");
3+
var NativeElement$ReactNative = require("rescript-react-native/src/elements/NativeElement.bs.js");
44

55
var Consumer = {};
66

0 commit comments

Comments
 (0)