@momo-kits/foundation 0.163.1-beta.6 → 0.163.1-beta.7

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.
@@ -17,16 +17,7 @@ import type {
17
17
  import type { NavigationState, PartialState } from '@react-navigation/native';
18
18
  import type { HeaderTitleProps, NavigationOptions } from './types';
19
19
  import { Colors, Spacing } from '../Consts';
20
- import {
21
- Animated,
22
- AppState,
23
- NativeModules,
24
- Platform,
25
- StyleProp,
26
- StyleSheet,
27
- ViewStyle,
28
- } from 'react-native';
29
- import { BlurView } from '@sbaiahmed1/react-native-blur';
20
+ import { Animated, AppState, NativeModules, Platform } from 'react-native';
30
21
  import type { SharedValue } from 'react-native-reanimated';
31
22
  import { useSharedValue } from 'react-native-reanimated';
32
23
  import {
@@ -49,35 +40,16 @@ const forStackTransitionWithOverlay = (
49
40
  cardStyle,
50
41
  shadowStyle,
51
42
  overlayStyle: {
43
+ backgroundColor: '#FDEAF4',
52
44
  opacity: props.current.progress.interpolate({
53
45
  inputRange: [0, 1],
54
- outputRange: [0, 1],
46
+ outputRange: [0, 0.3],
55
47
  extrapolate: 'clamp',
56
48
  }),
57
49
  },
58
50
  };
59
51
  };
60
52
 
61
- /**
62
- * blur intensity stays fixed so only the wrapper's opacity animates per
63
- * frame; animating blurAmount itself would re-render the native blur view
64
- * on every frame of the transition
65
- */
66
- const renderStackOverlay = ({
67
- style,
68
- }: {
69
- style: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
70
- }) => (
71
- <Animated.View pointerEvents="none" style={[StyleSheet.absoluteFill, style]}>
72
- <BlurView
73
- style={StyleSheet.absoluteFill}
74
- blurType="xlight"
75
- blurAmount={2}
76
- overlayColor="rgba(253, 234, 244, 0.3)"
77
- />
78
- </Animated.View>
79
- );
80
-
81
53
  /**
82
54
  * default options for stack screen
83
55
  */
@@ -102,7 +74,6 @@ const getStackOptions = (): StackNavigationOptions => {
102
74
  ...TransitionPresets.SlideFromRightIOS,
103
75
  cardStyleInterpolator: forStackTransitionWithOverlay,
104
76
  cardOverlayEnabled: true,
105
- cardOverlay: renderStackOverlay,
106
77
  };
107
78
  };
108
79
 
@@ -126,10 +97,7 @@ const getModalOptions = (): StackNavigationOptions => {
126
97
  * so swipe back must not bypass it
127
98
  */
128
99
  const hasCustomBackHandling = (params: NavigationOptions) =>
129
- params.preventBack !== undefined ||
130
- params.hiddenBack === true ||
131
- typeof params.onBackHandler === 'function' ||
132
- typeof params.onPressLeftHeader === 'function';
100
+ params.preventBack !== undefined || params.hiddenBack === true;
133
101
 
134
102
  /**
135
103
  * build react-navigation options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.163.1-beta.6",
3
+ "version": "0.163.1-beta.7",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},
@@ -9,7 +9,6 @@
9
9
  ],
10
10
  "dependencies": {
11
11
  "react-native-fast-image": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-fast-image.git#v8.11.0",
12
- "@sbaiahmed1/react-native-blur": "6.0.0",
13
12
  "@react-navigation/bottom-tabs": "7.4.2",
14
13
  "@react-navigation/core": "7.12.1",
15
14
  "@react-navigation/elements": "2.5.2",