@momo-kits/foundation 0.81.34 → 0.81.36

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.
@@ -1,5 +1,5 @@
1
1
  import React, {useContext, useEffect} from 'react';
2
- import {Platform, StyleSheet, View} from 'react-native';
2
+ import {Platform} from 'react-native';
3
3
  import {BottomTabProps, NavigationScreenProps} from './types';
4
4
  import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
5
5
  import {createStackNavigator} from '@react-navigation/stack';
@@ -8,7 +8,6 @@ import {Text} from '../Text';
8
8
  import {ApplicationContext} from './index';
9
9
  import {getStackOptions} from './utils';
10
10
  import StackScreen from './StackScreen';
11
- import {Spacing} from '../Consts';
12
11
  import {useSafeAreaInsets} from 'react-native-safe-area-context';
13
12
 
14
13
  const Tab = createBottomTabNavigator();
@@ -49,7 +48,7 @@ const BottomTab: React.FC<BottomTabProps> = ({
49
48
  backBehavior={'firstRoute'}
50
49
  tabBarOptions={{
51
50
  style: {
52
- height: 68 + insets.bottom,
51
+ height: 68 + Math.min(insets.bottom, 21),
53
52
  },
54
53
  tabStyle: {
55
54
  height: 68,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.81.34",
3
+ "version": "0.81.36",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/verify.js CHANGED
@@ -7,7 +7,9 @@ try {
7
7
  const packageVersion = parseInt(packageInfo?.version.split('.')?.[1]);
8
8
 
9
9
  const app = path.join(`${__dirname}/../../../`, 'app.json');
10
+ const miniJson = path.join(`${__dirname}/../../../`, 'package.json');
10
11
  const appInfo = JSON.parse(fs.readFileSync(app, 'utf8'));
12
+ const miniInfo = JSON.parse(fs.readFileSync(miniJson, 'utf8'));
11
13
  const iOSAppTarget = appInfo?.client?.ios.deploymentTarget;
12
14
  const androidAppTarget = appInfo?.client?.android.deploymentTarget;
13
15
 
@@ -23,6 +25,18 @@ try {
23
25
  `Package ${packageInfo.name} version: ${packageInfo.version} require deploymentTarget ${packageVersion}`,
24
26
  );
25
27
  }
28
+
29
+ if (
30
+ miniInfo?.name !== '@momo-platform/momo-core' &&
31
+ miniInfo?.resolutions?.['@momo-platform/momo-core'] !== packageInfo?.version
32
+ ) {
33
+ console.error(
34
+ `Package ${packageInfo.name} version: ${packageInfo.version} require install resolutions @momo-platform/momo-core ${packageInfo.version}`,
35
+ );
36
+ throw new Error(
37
+ `Package ${packageInfo.name} version: ${packageInfo.version} require install resolutions @momo-platform/momo-core ${packageInfo.version}`,
38
+ );
39
+ }
26
40
  } catch (error) {
27
41
  console.error(`Installation failed: ${error.message}`);
28
42
  process.exit(1);