@momo-kits/foundation 0.161.2-beta.19 → 0.161.2-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,7 +26,6 @@ import { HeaderLeft } from './Components/HeaderLeft';
|
|
|
26
26
|
import { HeaderRight } from './Components/HeaderRight';
|
|
27
27
|
import { HeaderTitle } from './Components/HeaderTitle';
|
|
28
28
|
import { HeaderBackground } from './Components/HeaderBackground';
|
|
29
|
-
import { KeyboardProvider } from 'react-native-keyboard-controller';
|
|
30
29
|
|
|
31
30
|
const Stack = createStackNavigator();
|
|
32
31
|
|
|
@@ -57,23 +56,21 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
|
|
|
57
56
|
};
|
|
58
57
|
|
|
59
58
|
return (
|
|
60
|
-
<
|
|
61
|
-
<
|
|
62
|
-
<
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
</SafeAreaProvider>
|
|
76
|
-
</KeyboardProvider>
|
|
59
|
+
<SafeAreaProvider>
|
|
60
|
+
<MiniAppContext.Provider value={mergedContext}>
|
|
61
|
+
<ScaleSizeProvider scaleSizeMaxRate={mergedContext?.scaleSizeMaxRate}>
|
|
62
|
+
<Navigation
|
|
63
|
+
screen={screen}
|
|
64
|
+
theme={theme}
|
|
65
|
+
options={options}
|
|
66
|
+
maxApi={maxApi}
|
|
67
|
+
setCurrentContext={setCurrentContext}
|
|
68
|
+
initialParams={initialParams}
|
|
69
|
+
localize={localize}
|
|
70
|
+
/>
|
|
71
|
+
</ScaleSizeProvider>
|
|
72
|
+
</MiniAppContext.Provider>
|
|
73
|
+
</SafeAreaProvider>
|
|
77
74
|
);
|
|
78
75
|
};
|
|
79
76
|
|
package/Layout/Screen.tsx
CHANGED
|
@@ -13,6 +13,7 @@ import React, {
|
|
|
13
13
|
} from 'react';
|
|
14
14
|
import {
|
|
15
15
|
Animated,
|
|
16
|
+
KeyboardAvoidingView,
|
|
16
17
|
NativeScrollEvent,
|
|
17
18
|
NativeSyntheticEvent,
|
|
18
19
|
Platform,
|
|
@@ -24,7 +25,6 @@ import {
|
|
|
24
25
|
View,
|
|
25
26
|
ViewProps,
|
|
26
27
|
} from 'react-native';
|
|
27
|
-
import { KeyboardAvoidingView } from "react-native-keyboard-controller";
|
|
28
28
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
29
29
|
import { ApplicationContext, ScreenContext } from '../Context';
|
|
30
30
|
import Navigation from '../Application/Navigation';
|
|
@@ -592,7 +592,7 @@ const Screen = forwardRef(
|
|
|
592
592
|
keyboardVerticalOffset={keyboardVerticalOffset ?? keyboardOffset}
|
|
593
593
|
behavior={Platform.select({
|
|
594
594
|
ios: 'padding',
|
|
595
|
-
android:
|
|
595
|
+
android: undefined,
|
|
596
596
|
})}
|
|
597
597
|
>
|
|
598
598
|
{Header}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-kits/foundation",
|
|
3
|
-
"version": "0.161.2-beta.
|
|
3
|
+
"version": "0.161.2-beta.21",
|
|
4
4
|
"description": "React Native Component Kits",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {},
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"@react-navigation/routers": "7.4.1",
|
|
17
17
|
"@react-navigation/stack": "7.4.2",
|
|
18
18
|
"react-native-gesture-handler": "2.27.1",
|
|
19
|
-
"react-native-keyboard-controller": "1.21.11",
|
|
20
19
|
"react-native-linear-gradient": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-linear-gradient#v3.0.0",
|
|
21
20
|
"react-native-reanimated": "4.2.2",
|
|
22
21
|
"react-native-safe-area-context": "5.5.2",
|