@momo-kits/foundation 0.81.29 → 0.81.30
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 +0 -17
- package/package.json +1 -1
package/Layout/Screen.tsx
CHANGED
|
@@ -149,14 +149,6 @@ const Screen = forwardRef(
|
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
navigation?.setOptions(styleAnimatedHeader);
|
|
152
|
-
const current: any = navigation;
|
|
153
|
-
const parent = current?.getParent?.();
|
|
154
|
-
if (parent) {
|
|
155
|
-
return current?.addListener?.('focus', () => {
|
|
156
|
-
const stackNavigation = new Navigation(parent, theme);
|
|
157
|
-
stackNavigation?.setOptions(styleAnimatedHeader);
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
152
|
}
|
|
161
153
|
}, [animatedHeader]);
|
|
162
154
|
|
|
@@ -210,16 +202,7 @@ const Screen = forwardRef(
|
|
|
210
202
|
headerBackground: (props: any) => <HeaderBackground {...props} />,
|
|
211
203
|
};
|
|
212
204
|
}
|
|
213
|
-
|
|
214
205
|
navigation?.setOptions(headerOptions);
|
|
215
|
-
const current: any = navigation;
|
|
216
|
-
const parent = current?.getParent?.();
|
|
217
|
-
if (parent) {
|
|
218
|
-
return current?.addListener?.('focus', () => {
|
|
219
|
-
const stackNavigation = new Navigation(parent, theme);
|
|
220
|
-
stackNavigation?.setOptions(headerOptions);
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
206
|
}
|
|
224
207
|
}, [headerType]);
|
|
225
208
|
|