@momo-kits/foundation 0.92.21-beta.12 → 0.92.21-beta.13

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.
@@ -535,12 +535,22 @@ const HeaderExtendHeader: React.FC<{
535
535
  if (inputSearchProps) {
536
536
  if (headerType === 'surface') {
537
537
  return (
538
- <View
539
- style={{
540
- backgroundColor: theme.colors.background.surface,
541
- borderBottomWidth: 1,
542
- borderColor: theme.colors.border.default,
543
- }}>
538
+ <>
539
+ <Animated.View
540
+ style={[
541
+ styles.headerBox,
542
+ {
543
+ backgroundColor: theme.colors.background.surface,
544
+ borderBottomWidth: 1,
545
+ borderColor: theme.colors.border.default,
546
+ height: heightAnimated.current.interpolate({
547
+ inputRange: [0, 100],
548
+ outputRange: [heightHeader + 52, heightHeader],
549
+ extrapolate: 'clamp',
550
+ }),
551
+ },
552
+ ]}
553
+ />
544
554
  <Animated.View
545
555
  style={{
546
556
  justifyContent: 'flex-end',
@@ -557,7 +567,7 @@ const HeaderExtendHeader: React.FC<{
557
567
  hasColorBG={true}
558
568
  />
559
569
  </Animated.View>
560
- </View>
570
+ </>
561
571
  );
562
572
  }
563
573
 
@@ -78,7 +78,7 @@ class Navigator {
78
78
  StackActions.push('Modal', {
79
79
  ...params,
80
80
  isBottomSheet: true,
81
- })
81
+ }),
82
82
  );
83
83
  }
84
84
  };
@@ -103,7 +103,7 @@ class Navigator {
103
103
  CommonActions.navigate({
104
104
  name,
105
105
  params,
106
- })
106
+ }),
107
107
  );
108
108
  }
109
109
  };
@@ -124,7 +124,7 @@ class Navigator {
124
124
  params,
125
125
  },
126
126
  ],
127
- })
127
+ }),
128
128
  );
129
129
  }
130
130
  };
@@ -142,14 +142,10 @@ class Navigator {
142
142
  * @param callback
143
143
  */
144
144
  setToolkitCallback = (
145
- callback: (item: {key: string; action: string}) => void
145
+ callback: (item: {key: string; action: string}) => void,
146
146
  ) => {
147
147
  this.toolkitCallback = callback;
148
148
  };
149
-
150
- setHeaderWidth = (width: number) => {
151
- alert(width);
152
- };
153
149
  }
154
150
 
155
151
  export default Navigator;
@@ -34,7 +34,6 @@ const AnimatedInputSearch: FC<AnimatedInputSearchProps> = ({
34
34
  navigation!.onHeaderRightChange = (width: number) => {
35
35
  setRightSpace(width);
36
36
  };
37
-
38
37
  const translateX = widthAnimated.current.interpolate({
39
38
  inputRange: [0, 100],
40
39
  outputRange: [SCREEN_PADDING, BACK_WIDTH + SCREEN_PADDING * 2],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.92.21-beta.12",
3
+ "version": "0.92.21-beta.13",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},