@momo-kits/foundation 0.92.6-rc.8 → 0.92.6-rc.9
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.
- package/Layout/Screen.tsx +2 -7
- package/package.json +1 -1
package/Layout/Screen.tsx
CHANGED
|
@@ -114,7 +114,7 @@ const Screen = forwardRef(
|
|
|
114
114
|
}: ScreenProps,
|
|
115
115
|
ref,
|
|
116
116
|
) => {
|
|
117
|
-
const animatedValue = useRef<Animated.Value
|
|
117
|
+
const animatedValue = useRef<Animated.Value>();
|
|
118
118
|
const {theme} = useContext(ApplicationContext);
|
|
119
119
|
const insets = useSafeAreaInsets();
|
|
120
120
|
const heightHeader = useHeaderHeight();
|
|
@@ -190,12 +190,9 @@ const Screen = forwardRef(
|
|
|
190
190
|
image={null}
|
|
191
191
|
backgroundColor={theme.colors.background.surface}
|
|
192
192
|
useBorder={true}
|
|
193
|
-
animatedValue={animatedValue.current}
|
|
194
193
|
/>
|
|
195
194
|
),
|
|
196
|
-
headerTitle: (props: any) =>
|
|
197
|
-
<HeaderTitle {...props} animatedValue={animatedValue.current} />
|
|
198
|
-
),
|
|
195
|
+
headerTitle: (props: any) => <HeaderTitle {...props} />,
|
|
199
196
|
};
|
|
200
197
|
break;
|
|
201
198
|
|
|
@@ -228,8 +225,6 @@ const Screen = forwardRef(
|
|
|
228
225
|
Component = Animated.ScrollView;
|
|
229
226
|
handleScroll = scrollViewProps?.onScroll;
|
|
230
227
|
if (animatedHeader || floatingButtonProps) {
|
|
231
|
-
animatedValue.current = new Animated.Value(0);
|
|
232
|
-
|
|
233
228
|
handleScroll = Animated.event(
|
|
234
229
|
[
|
|
235
230
|
{
|