@momo-kits/foundation 0.163.1-beta.3 → 0.163.1-sp.1

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.
@@ -315,6 +315,7 @@ const StackScreen: React.FC<any> = props => {
315
315
  <ScreenContext.Provider
316
316
  value={{
317
317
  screenName,
318
+ bottomTab: !!bottomTab,
318
319
  onElementLoad: (item: any) => {
319
320
  /**
320
321
  * widget handle
package/Layout/Screen.tsx CHANGED
@@ -242,7 +242,9 @@ const Screen = forwardRef(
242
242
  }, [customAnimatedValue, internalShared]);
243
243
 
244
244
  const currentTint = useRef<string | undefined>(undefined);
245
- const isTab = navigation?.instance?.getState?.()?.type === 'tab';
245
+ const isTab =
246
+ navigation?.instance?.getState?.()?.type === 'tab' ||
247
+ !!screen?.bottomTab;
246
248
 
247
249
  let handleScroll;
248
250
  let Component: any = View;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.163.1-beta.3",
3
+ "version": "0.163.1-sp.1",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},