Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9753cad

Browse files
committed
Migrate to ReScript (without code conversion)
Code conversion blocked by rescript-lang/rescript#5104
1 parent b353467 commit 9753cad

File tree

8 files changed

+52
-60
lines changed

8 files changed

+52
-60
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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
# Changelog of `reason-react-navigation`
1+
# Changelog of `rescript-react-navigation`
22

33
## 5.1.2 - 2021年02月25日
44

55
Add missing .res files
66

77
## 5.1.1 - 2021年02月25日
88

9-
- Add plenty of missing bindings, (notably ssr, linking, native stack & missing props in stack) [34ff8a8](https://github.com/reason-react-native/reason-react-navigation/commit/34ff8a8) by [@MoOx](https://github.com/MoOx)
9+
- Add plenty of missing bindings, (notably ssr, linking, native stack & missing props in stack) [34ff8a8](https://github.com/rescript-react-native/rescript-react-navigation/commit/34ff8a8) by [@MoOx](https://github.com/MoOx)
1010

1111
## 5.1.0 - 2021年02月19日
1212

13-
- Breaking changes: rescript 8.2 & rrn 0.63 [757e6b5](https://github.com/reason-react-native/reason-react-navigation/commit/757e6b5) by [@MoOx](https://github.com/MoOx)
14-
- Fix NavigationContainer ref [#41](https://github.com/reason-react-native/reason-react-navigation/pull/41) by [@dimapaloskin](https://github.com/dimapaloskin)
13+
- Breaking changes: rescript 8.2 & rrn 0.63 [757e6b5](https://github.com/rescript-react-native/rescript-react-navigation/commit/757e6b5) by [@MoOx](https://github.com/MoOx)
14+
- Fix NavigationContainer ref [#41](https://github.com/rescript-react-native/rescript-react-navigation/pull/41) by [@dimapaloskin](https://github.com/dimapaloskin)
1515

1616
## 5.0.3 - 2020年11月18日
1717

1818
Fix npm description
1919

2020
## 5.0.2 - 2020年09月11日
2121

22-
- Fixed missing `src/Interop.js` in npm package [#38](https://github.com/reason-react-native/reason-react-navigation/pull/38) by [@baransu](https://github.com/baransu)
22+
- Fixed missing `src/Interop.js` in npm package [#38](https://github.com/rescript-react-native/rescript-react-navigation/pull/38) by [@baransu](https://github.com/baransu)
2323

2424
## 5.0.1 - 2020年08月20日
2525

26-
- Added react ref and key props to components [#37](https://github.com/reason-react-native/reason-react-navigation/pull/37) by [@Freddy03h](https://github.com/Freddy03h)
26+
- Added react ref and key props to components [#37](https://github.com/rescript-react-native/rescript-react-navigation/pull/37) by [@Freddy03h](https://github.com/Freddy03h)
2727

2828
## 5.0.0 - 2020年08月10日
2929

30-
- Fixed BottomTabs / MaterialTopTabs tabBar props [#33](https://github.com/reason-react-native/reason-react-navigation/pull/33) by [@Freddy03h](https://github.com/Freddy03h)
31-
- Added missing options props for all components [#35](https://github.com/reason-react-native/reason-react-navigation/pull/35) by [@Freddy03h](https://github.com/Freddy03h)
32-
- Added ScreenWithCallback for tabs navigators [#34](https://github.com/reason-react-native/reason-react-navigation/pull/34) by [@Freddy03h](https://github.com/Freddy03h)
30+
- Fixed BottomTabs / MaterialTopTabs tabBar props [#33](https://github.com/rescript-react-native/rescript-react-navigation/pull/33) by [@Freddy03h](https://github.com/Freddy03h)
31+
- Added missing options props for all components [#35](https://github.com/rescript-react-native/rescript-react-navigation/pull/35) by [@Freddy03h](https://github.com/Freddy03h)
32+
- Added ScreenWithCallback for tabs navigators [#34](https://github.com/rescript-react-native/rescript-react-navigation/pull/34) by [@Freddy03h](https://github.com/Freddy03h)
3333
- Added Stack.ScreenWithCallback to support render callback by [@a-c-sreedhar-reddy ](https://github.com/a-c-sreedhar-reddy)
34-
- Upgrade to recent reason-react-native 0.62, reason-react 0.9.0 and bs-platform 8 [015c693](https://github.com/reason-react-native/reason-react-navigation/commit/015c693) by [@MoOx](https://github.com/MoOx)
34+
- Upgrade to recent rescript-react-native 0.62, rescript-react 0.9.0 and bs-platform 8 [015c693](https://github.com/rescript-react-native/rescript-react-navigation/commit/015c693) by [@MoOx](https://github.com/MoOx)
3535
Should still work with previous versions.
3636

3737
## 5.0.0-beta.0 - 2020年02月29日

‎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: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# `reason-react-navigation`
1+
# `rescript-react-navigation`
22

3-
[![Build Status](https://github.com/reason-react-native/reason-react-navigation/workflows/Build/badge.svg)](https://github.com/reason-react-native/reason-react-navigation/actions)
4-
[![Version](https://img.shields.io/npm/v/reason-react-navigation.svg)](https://www.npmjs.com/reason-react-navigation)
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/rescript-react-navigation/workflows/Build/badge.svg)](https://github.com/rescript-react-native/rescript-react-navigation/actions)
4+
[![Version](https://img.shields.io/npm/v/rescript-react-navigation.svg)](https://www.npmjs.com/rescript-react-navigation)
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-navigation`](https://github.com/react-navigation/react-navigation).
99

1010
Exposed as `ReactNavigation` module.
1111

12-
`reason-react-navigation` X.y.\* means it's compatible with `react-navigation`
12+
`rescript-react-navigation` X.y.\* means it's compatible with `react-navigation`
1313
X.y.\*
1414

1515
## Status
@@ -25,22 +25,22 @@ properly installed & configured by following their installation instructions,
2525
you can install the bindings:
2626

2727
```console
28-
npm install reason-react-navigation
28+
npm install rescript-react-navigation
2929
# or
30-
yarn add reason-react-navigation
30+
yarn add rescript-react-navigation
3131
```
3232

33-
`reason-react-navigation` should be added to `bs-dependencies` in your
33+
`rescript-react-navigation` should be added to `bs-dependencies` in your
3434
`bsconfig.json`:
3535

3636
```diff
3737
{
3838
//...
3939
"bs-dependencies": [
40-
"reason-react",
41-
"reason-react-native",
40+
"@rescript/react",
41+
"rescript-react-native",
4242
// ...
43-
+ "reason-react-navigation"
43+
+ "rescript-react-navigation"
4444
],
4545
//...
4646
}
@@ -59,10 +59,10 @@ releases.
5959

6060
## Contribute
6161

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

6464
## Code of Conduct
6565

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

‎bsconfig.json‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
2-
"name": "reason-react-navigation",
2+
"name": "rescript-react-navigation",
33
"namespace": "react-navigation",
4-
"refmt": 3,
5-
"reason": {
6-
"react-jsx": 3
7-
},
4+
"reason": { "react-jsx": 3 },
85
"package-specs": {
96
"module": "commonjs",
107
"in-source": true
@@ -22,5 +19,5 @@
2219
"number": "-30"
2320
},
2421
"warnings-number-30-is-useless": "https://github.com/ocaml/ocaml/pull/9046",
25-
"bs-dependencies": ["reason-react", "reason-react-native"]
22+
"bs-dependencies": ["@rescript/react", "rescript-react-native"]
2623
}

‎package.json‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "reason-react-navigation",
2+
"name": "rescript-react-navigation",
33
"description": "ReScript bindings for react-navigation.",
44
"version": "5.1.2",
55
"peerDependencies": {
@@ -9,19 +9,16 @@
99
"@react-navigation/material-top-tabs": "^5.0.0",
1010
"@react-navigation/material-bottom-tabs": "^5.0.0",
1111
"@react-navigation/drawer": "^5.0.0",
12-
"reason-react": "^0.9.0",
13-
"reason-react-native": "^0.63.0"
12+
"@rescript/react": "^0.10.0",
13+
"rescript-react-native": "^0.64.3"
1414
},
1515
"publishConfig": {
1616
"access": "public"
1717
},
18-
"repository": "https://github.com/reason-react-native/react-navigation.git",
18+
"repository": "https://github.com/rescript-react-native/react-navigation.git",
1919
"license": "MIT",
2020
"keywords": [
2121
"rescript",
22-
"reason",
23-
"reasonml",
24-
"bucklescript",
2522
"react-native",
2623
"react-navigation"
2724
],
@@ -30,6 +27,7 @@
3027
"bsconfig.json",
3128
"src/**/*.re",
3229
"src/**/*.res",
30+
"src/**/*.resi",
3331
"src/**/*.js",
3432
"!src/**/*.bs.js"
3533
],
@@ -46,13 +44,13 @@
4644
"release": "npmpub"
4745
},
4846
"devDependencies": {
49-
"bs-platform": "^8.2.0",
47+
"bs-platform": "^9.0.0",
5048
"husky": "^4.0.0",
5149
"lint-staged": "^10.0.0",
5250
"npmpub": "^5.0.0",
5351
"prettier": "^2.0.0",
54-
"reason-react": "^0.9.0",
55-
"reason-react-native": "^0.63.0"
52+
"@rescript/react": "^0.10.0",
53+
"rescript-react-native": "^0.64.3"
5654
},
5755
"prettier": {
5856
"trailingComma": "all"

‎yarn.lock‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@
127127
dependencies:
128128
"@types/node" ">= 8"
129129

130+
"@rescript/react@^0.10.0":
131+
version "0.10.2"
132+
resolved "https://registry.yarnpkg.com/@rescript/react/-/react-0.10.2.tgz#170d2a5ff34ad09cd614d92467d5efad95202794"
133+
integrity sha512-Qe21P4WnrmrbhbEMQ4dpaXC1/iMMc7JmqjuSpZouSP+s41K5dCXUGY9sds30gajU74lSfJdG2PzSDYcNAcDyVA==
134+
130135
"@sindresorhus/df@^1.0.1":
131136
version "1.0.1"
132137
resolved "https://registry.yarnpkg.com/@sindresorhus/df/-/df-1.0.1.tgz#c69b66f52f6fcdd287c807df210305dbaf78500d"
@@ -251,10 +256,10 @@ braces@^3.0.1:
251256
dependencies:
252257
fill-range "^7.0.1"
253258

254-
bs-platform@^8.2.0:
255-
version "8.3.2"
256-
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-8.3.2.tgz#c307f1cc2d2397c3d088c7f3b62e9f493283cdcf"
257-
integrity sha512-iOTi5JIlNPoCPq31NS9ET79FLyCpwTL2JZbgHz35LzY9Bch1iDtbBR3FVGhRbjphxelAP4fLlFONfUNp5Y3a5g==
259+
bs-platform@^9.0.0:
260+
version "9.0.2"
261+
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-9.0.2.tgz#a6eac70eb8924a322556dacaccbfbc9b2a0d3a37"
262+
integrity sha512-Ye9JqJ4Oa7mcjjoOVRYI8Uc2Cf8N7jQLWDcdUplY7996d/YErSR7WitmV7XnSwr4EvdrbwjEsg1NxNjUQv3ChA==
258263

259264
callsites@^3.0.0:
260265
version "3.1.0"
@@ -1104,21 +1109,16 @@ readjson@^2.0.1:
11041109
dependencies:
11051110
try-catch "^3.0.0"
11061111

1107-
reason-react-native@^0.63.0:
1108-
version "0.63.0"
1109-
resolved "https://registry.yarnpkg.com/reason-react-native/-/reason-react-native-0.63.0.tgz#08de85136a41809b9a66cac066d4ea6975406000"
1110-
integrity sha512-rE1OOph5Jxceost2ahdvX+VXJ2RPNyefX9FMXa/OXgqmLKjFeZuyVOySUj41UoohOYyKmZWbgansDGccwYrdUQ==
1111-
1112-
reason-react@^0.9.0:
1113-
version "0.9.1"
1114-
resolved "https://registry.yarnpkg.com/reason-react/-/reason-react-0.9.1.tgz#30a887158200b659aa03e2d75ff4cc54dc462bb0"
1115-
integrity sha512-nlH0O2TDy9KzOLOW+vlEQk4ExHOeciyzFdoLcsmmiit6hx6H5+CVDrwJ+8aiaLT/kqK5xFOjy4PS7PftWz4plA==
1116-
11171112
regenerator-runtime@^0.13.4:
11181113
version "0.13.5"
11191114
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697"
11201115
integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==
11211116

1117+
rescript-react-native@^0.64.3:
1118+
version "0.64.3"
1119+
resolved "https://registry.yarnpkg.com/rescript-react-native/-/rescript-react-native-0.64.3.tgz#8fd11a2681cfdd65c02f0ff620186e5adf0c6854"
1120+
integrity sha512-PjGDkV3RYiCTk4hCZyaKtZJV69By0AmJuzWyuHZONdeCB0q3DwjVJtA73gu6+jBrdl0OWon6UdXaVRXhhR47cQ==
1121+
11221122
resolve-from@^4.0.0:
11231123
version "4.0.0"
11241124
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /