Skip to content

Commit

Permalink
Full rewrite for JSX4, records with optional fields + simplicity (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt authored Mar 21, 2023
1 parent acbb2ce commit 1837461
Show file tree
Hide file tree
Showing 25 changed files with 11,926 additions and 11,470 deletions.
5 changes: 4 additions & 1 deletion bsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "rescript-react-navigation",
"namespace": "react-navigation",
"reason": { "react-jsx": 3 },
"jsx": {
"version": 4,
"mode": "classic"
},
"package-specs": {
"module": "commonjs",
"in-source": true
Expand Down
20,186 changes: 10,741 additions & 9,445 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
"release": "npmpub"
},
"devDependencies": {
"@rescript/react": "^0.10.0",
"@rescript/react": "^0.11.0",
"husky": "^4.0.0",
"lint-staged": "^10.0.0",
"npmpub": "^5.0.0",
"prettier": "^2.0.0",
"rescript": "^9.1.4",
"rescript-react-native": ">=0.64.3"
"rescript": "^10.1.2",
"rescript-react-native": ">=0.70.0"
},
"prettier": {
"trailingComma": "all"
Expand Down
42 changes: 9 additions & 33 deletions src/BottomTabs.bs.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,17 @@
'use strict';

var Core$ReactNavigation = require("./Core.bs.js");
var Interop = require("./Interop");
var BottomTabs = require("@react-navigation/bottom-tabs");

var BottomTabNavigationProp = Core$ReactNavigation.NavigationScreenProp;
var TabBarBadge = {};

function Make(M) {
var M$1 = {};
var include = Core$ReactNavigation.NavigationScreenProp(M$1);
var Navigation = include;
var bottomTabs = BottomTabs.createBottomTabNavigator();
var make = bottomTabs.Screen;
var $$Screen = {
make: make
};
var make$1 = bottomTabs.Screen;
var ScreenWithCallback = {
make: make$1
};
var make$2 = bottomTabs.Navigator;
var $$Navigator = {
make: make$2
};
var make$3 = bottomTabs.Group;
var Group = {
make: make$3
};
return {
Navigation: Navigation,
bottomTabs: bottomTabs,
$$Screen: $$Screen,
ScreenWithCallback: ScreenWithCallback,
$$Navigator: $$Navigator,
Group: Group
};
function Make($star) {
return Interop.adaptNavigatorModule(BottomTabs.createBottomTabNavigator());
}

exports.BottomTabNavigationProp = BottomTabNavigationProp;
var Navigation = {};

exports.TabBarBadge = TabBarBadge;
exports.Make = Make;
/* @react-navigation/bottom-tabs Not a pure module */
exports.Navigation = Navigation;
/* ./Interop Not a pure module */
Loading

0 comments on commit 1837461

Please sign in to comment.