Movatterモバイル変換


[0]ホーム

URL:


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

Various fixes and improvements#69

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
cknitt merged 3 commits intomainfromfixes
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes fromall 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
16 changes: 9 additions & 7 deletionspackage-lock.json
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

2 changes: 1 addition & 1 deletionpackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -48,7 +48,7 @@
"lint-staged": "^10.0.0",
"npmpub": "^5.0.0",
"prettier": "^2.0.0",
"rescript": "^10.1.2",
"rescript": "^11.0.0",
"rescript-react-native": ">=0.71.1"
},
"prettier": {
Expand Down
4 changes: 2 additions & 2 deletionssrc/BottomTabs.bs.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,9 +9,9 @@ function Make($star) {
return Interop.adaptNavigatorModule(BottomTabs.createBottomTabNavigator());
}

var Navigation = {};
var$$Navigation = {};

exports.TabBarBadge = TabBarBadge;
exports.Make = Make;
exports.Navigation = Navigation;
exports.$$Navigation =$$Navigation;
/* ./Interop Not a pure module */
2 changes: 1 addition & 1 deletionsrc/BottomTabs.res
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -46,7 +46,7 @@ type rec options = {
header?: headerParams => React.element,
headerShown?: bool,
// Header props from https://reactnavigation.org/docs/elements#header
headerTitle?: Header.headerTitleProps => React.element,
headerTitle?: Header.headerTitle,
headerTitleAlign?: Header.headerTitleAlign,
headerTitleAllowFontScaling?: bool,
headerTitleStyle?: Style.t,
Expand Down
4 changes: 2 additions & 2 deletionssrc/Core.bs.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,9 +5,9 @@ var Params = {};

var NavigationEvent = {};

var Navigation = {};
var$$Navigation = {};

exports.Params = Params;
exports.NavigationEvent = NavigationEvent;
exports.Navigation = Navigation;
exports.$$Navigation =$$Navigation;
/* No side effect */
7 changes: 5 additions & 2 deletionssrc/Drawer.bs.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,8 +7,11 @@ function Make($star) {
return Interop.adaptNavigatorModule(Drawer.createDrawerNavigator());
}

var Navigation = {};
var $$Navigation = {};

var DrawerItemList = {};

exports.Make = Make;
exports.Navigation = Navigation;
exports.$$Navigation = $$Navigation;
exports.DrawerItemList = DrawerItemList;
/* ./Interop Not a pure module */
7 changes: 6 additions & 1 deletionsrc/Drawer.res
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,7 +57,7 @@ type rec options = {
headerShown?: bool,
header?: headerProps => React.element,
// Header props from https://reactnavigation.org/docs/elements#header
headerTitle?: Header.headerTitleProps => React.element,
headerTitle?: Header.headerTitle,
headerTitleAlign?: Header.headerTitleAlign,
headerTitleAllowFontScaling?: bool,
headerTitleStyle?: Style.t,
Expand DownExpand Up@@ -167,3 +167,8 @@ external useDrawerStatus: unit => drawerStatus = "useDrawerStatus"

@module("@react-navigation/drawer")
external getDrawerStatusFromState: navigationState => drawerStatus = "getDrawerStatusFromState"

module DrawerItemList = {
@module("@react-navigation/drawer")
external make: React.component<contentComponentProps> = "DrawerItemList"
}
7 changes: 6 additions & 1 deletionsrc/Elements.res
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,6 +8,11 @@ module Header = {
children: string,
}

@unboxed
type headerTitle =
| String(string)
| Function(headerTitleProps => React.element)

type headerLeftProps = {
tintColor: option<Color.t>,
pressColor: option<Color.t>,
Expand All@@ -28,7 +33,7 @@ module Header = {
@react.component @module("@react-navigation/elements")
external make: (
~title: string=?,
~headerTitle:headerTitleProps => React.element=?,
~headerTitle:headerTitle=?,
~headerTitleAlign: headerTitleAlign=?,
~headerTitleAllowFontScaling: bool=?,
~headerTitleStyle: Style.t=?,
Expand Down
4 changes: 2 additions & 2 deletionssrc/MaterialBottomTabs.bs.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,9 +9,9 @@ function Make($star) {
return Interop.adaptNavigatorModule(MaterialBottomTabs.createMaterialBottomTabNavigator());
}

var Navigation = {};
var$$Navigation = {};

exports.TabBarBadge = TabBarBadge;
exports.Make = Make;
exports.Navigation = Navigation;
exports.$$Navigation =$$Navigation;
/* ./Interop Not a pure module */
3 changes: 3 additions & 0 deletionssrc/MaterialBottomTabs.res
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -80,6 +80,9 @@ type navigatorModule
module Make = () => unpack(createMaterialBottomTabNavigator()->adaptNavigatorModule)

module Navigation = {
@send
external setOptions: (navigation, options) => unit = "setOptions"

@send external jumpTo: (navigation, string) => unit = "jumpTo"
@send
external jumpToWithParams: (navigation, string, 'params) => unit = "jumpTo"
Expand Down
4 changes: 2 additions & 2 deletionssrc/MaterialTopTabs.bs.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,8 +7,8 @@ function Make($star) {
return Interop.adaptNavigatorModule(MaterialTopTabs.createMaterialTopTabNavigator());
}

var Navigation = {};
var$$Navigation = {};

exports.Make = Make;
exports.Navigation = Navigation;
exports.$$Navigation =$$Navigation;
/* ./Interop Not a pure module */
3 changes: 3 additions & 0 deletionssrc/MaterialTopTabs.res
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -129,6 +129,9 @@ type navigatorModule
module Make = () => unpack(createMaterialTopTabNavigator()->adaptNavigatorModule)

module Navigation = {
@send
external setOptions: (navigation, options) => unit = "setOptions"

@send external jumpTo: (navigation, string) => unit = "jumpTo"
@send
external jumpToWithParams: (navigation, string, 'params) => unit = "jumpTo"
Expand Down
5 changes: 5 additions & 0 deletionssrc/Native.res
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,10 +6,12 @@ type themeColors = {
border: string,
notification: string,
}

type theme = {
dark: bool,
colors: themeColors,
}

@module("@react-navigation/native")
external defaultTheme: theme = "DefaultTheme"
@module("@react-navigation/native")
Expand DownExpand Up@@ -122,3 +124,6 @@ module Link = {
~children: React.element,
) => React.element = "Link"
}

@module("@react-navigation/native")
external getFocusedRouteNameFromRoute: Core.route => option<string> = "getFocusedRouteNameFromRoute"
4 changes: 2 additions & 2 deletionssrc/NativeStack.bs.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,8 +7,8 @@ function Make($star) {
return Interop.adaptNavigatorModule(NativeStack.createNativeStackNavigator());
}

var Navigation = {};
var$$Navigation = {};

exports.Make = Make;
exports.Navigation = Navigation;
exports.$$Navigation =$$Navigation;
/* ./Interop Not a pure module */
9 changes: 5 additions & 4 deletionssrc/NativeStack.res
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
// https://reactnavigation.org/docs/native-stack-navigator/

open Core
open Elements
open ReactNative

@module("react-native-screens")
Expand DownExpand Up@@ -140,11 +141,11 @@ type rec options = {
headerShadowVisible?: bool,
headerTransparent?: bool,
headerBlurEffect?: blurEffect,
headerBackground?:unit => React.element,
headerBackground?:Header.headerBackgroundOptions => React.element,
headerTintColor?: Color.t,
headerLeft?:unit => React.element,
headerRight?:unit => React.element,
headerTitle?:string,
headerLeft?:Header.headerLeftProps => React.element,
headerRight?:Header.headerRightProps => React.element,
headerTitle?:Header.headerTitle,
headerTitleAlign?: headerTitleAlign,
headerTitleStyle?: headerTitleStyle,
headerSearchBarOptions?: headerSearchBarOptions,
Expand Down
4 changes: 2 additions & 2 deletionssrc/Stack.bs.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@ function Make($star) {
return Interop.adaptNavigatorModule(Stack.createStackNavigator());
}

var Navigation = {};
var$$Navigation = {};

var TransitionSpecs = {};

Expand All@@ -21,7 +21,7 @@ var TransitionPresets = {};

exports.TransitionSpec = TransitionSpec;
exports.Make = Make;
exports.Navigation = Navigation;
exports.$$Navigation =$$Navigation;
exports.TransitionSpecs = TransitionSpecs;
exports.CardStyleInterpolators = CardStyleInterpolators;
exports.HeaderStyleInterpolators = HeaderStyleInterpolators;
Expand Down
2 changes: 1 addition & 1 deletionsrc/Stack.res
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -129,7 +129,7 @@ type rec options = {
headerTruncatedBackTitle?: string,
headerBackTitleStyle?: Style.t,
// Header props from https://reactnavigation.org/docs/elements#header
headerTitle?: Header.headerTitleProps => React.element,
headerTitle?: Header.headerTitle,
headerTitleAlign?: Header.headerTitleAlign,
headerTitleAllowFontScaling?: bool,
headerTitleStyle?: Style.t,
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp