@momo-kits/foundation 0.102.1-beta.3 → 0.102.1-beta.4
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/Application/types.ts +2 -2
- package/Layout/Screen.tsx +3 -3
- package/package.json +1 -1
package/Application/types.ts
CHANGED
|
@@ -242,9 +242,9 @@ export type FloatingButtonProps = {
|
|
|
242
242
|
|
|
243
243
|
export type AnimatedDefaultType = {
|
|
244
244
|
type: 'default' | 'surface';
|
|
245
|
-
component?: (props
|
|
245
|
+
component?: (props: {animatedValue: Animated.Value}) => React.ReactElement;
|
|
246
246
|
headerTitle?: (
|
|
247
|
-
props
|
|
247
|
+
props: StackHeaderTitleProps & {animatedValue: Animated.Value}
|
|
248
248
|
) => React.ReactElement;
|
|
249
249
|
};
|
|
250
250
|
|
package/Layout/Screen.tsx
CHANGED
|
@@ -263,7 +263,7 @@ const Screen = forwardRef(
|
|
|
263
263
|
animatedValue={animatedValue.current}
|
|
264
264
|
/>
|
|
265
265
|
),
|
|
266
|
-
headerTitle:
|
|
266
|
+
headerTitle: props => (
|
|
267
267
|
<HeaderTitle {...props} animatedValue={animatedValue.current} />
|
|
268
268
|
),
|
|
269
269
|
};
|
|
@@ -281,7 +281,7 @@ const Screen = forwardRef(
|
|
|
281
281
|
animatedValue={animatedValue.current}
|
|
282
282
|
/>
|
|
283
283
|
),
|
|
284
|
-
headerTitle:
|
|
284
|
+
headerTitle: props => (
|
|
285
285
|
<HeaderTitle
|
|
286
286
|
{...props}
|
|
287
287
|
animatedValue={
|
|
@@ -296,7 +296,7 @@ const Screen = forwardRef(
|
|
|
296
296
|
if (animatedHeader.headerTitle) {
|
|
297
297
|
options = {
|
|
298
298
|
...options,
|
|
299
|
-
headerTitle:
|
|
299
|
+
headerTitle: props =>
|
|
300
300
|
animatedHeader.headerTitle?.({
|
|
301
301
|
...props,
|
|
302
302
|
animatedValue: animatedValue.current,
|