Skip to content

Commit 3a76951

Browse files
Freddy03hcem2ran
andauthored
Rescript migration (#45)
* chore: migrate to rescript (#44) fixes #42 * fix bottomTabBarProps instead of bottomTabBarOptions * add materialTopTabBarOptions and bottomTabBarOptions creation functions Co-authored-by: Cem Turan <[email protected]>
1 parent 977fc89 commit 3a76951

24 files changed

+1458
-1588
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"description": "ReScript bindings for react-navigation.",
44
"version": "5.1.3",
55
"peerDependencies": {
6-
"@react-navigation/native": "^5.0.0",
76
"@react-navigation/bottom-tabs": "^5.0.0",
8-
"@react-navigation/stack": "^5.0.0",
9-
"@react-navigation/material-top-tabs": "^5.0.0",
10-
"@react-navigation/material-bottom-tabs": "^5.0.0",
117
"@react-navigation/drawer": "^5.0.0",
8+
"@react-navigation/material-bottom-tabs": "^5.0.0",
9+
"@react-navigation/material-top-tabs": "^5.0.0",
10+
"@react-navigation/native": "^5.0.0",
11+
"@react-navigation/stack": "^5.0.0",
1212
"@rescript/react": "^0.10.0",
1313
"rescript-react-native": "^0.64.3"
1414
},
@@ -35,21 +35,21 @@
3535
"format:most": "prettier --write \"**/*.{md,json,js,css}\"",
3636
"format:re": "find . -name \"*.re\" -or -name \"*.rei\" | grep -v \"node_modules\" | xargs bsrefmt --in-place",
3737
"format": "yarn format:most && yarn format:re",
38-
"re:start": "bsb -make-world -w",
39-
"re:build": "bsb -make-world",
40-
"re:clean-build": "bsb -clean-world -make-world",
38+
"re:start": "rescript -w",
39+
"re:build": "rescript",
40+
"re:clean-build": "rescript clean && rescript",
4141
"start": "yarn re:start",
4242
"build": "yarn re:build",
4343
"test": "yarn re:clean-build",
4444
"release": "npmpub"
4545
},
4646
"devDependencies": {
47-
"bs-platform": "^9.0.0",
47+
"@rescript/react": "^0.10.0",
4848
"husky": "^4.0.0",
4949
"lint-staged": "^10.0.0",
5050
"npmpub": "^5.0.0",
5151
"prettier": "^2.0.0",
52-
"@rescript/react": "^0.10.0",
52+
"rescript": "^9.1.2",
5353
"rescript-react-native": "^0.64.3"
5454
},
5555
"prettier": {

src/BottomTabs.re

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

0 commit comments

Comments
 (0)