Skip to content

Full rewrite for JSX4, records with optional fields + simplicity #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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