@momo-kits/foundation 0.92.8-rc.3 → 0.92.8-rc.5

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.
@@ -219,7 +219,7 @@ export default function BottomTabBar({
219
219
  style,
220
220
  ]}
221
221
  pointerEvents={'auto'}>
222
- <View style={styles.content}>
222
+ <View style={styles.content} accessibilityLabel={'bottom_tab_bar'}>
223
223
  {useFloating && floatingButton?.container}
224
224
  <Animated.View
225
225
  style={{
@@ -81,11 +81,7 @@ const BottomTab: React.FC<BottomTabProps> = ({
81
81
  initialRouteName={initialRouteName}
82
82
  backBehavior={'firstRoute'}
83
83
  tabBar={props => (
84
- <BottomTabBar
85
- {...props}
86
- accessibilityLabel={'bottom_tab_bar'}
87
- floatingButton={floatingButton}
88
- />
84
+ <BottomTabBar {...props} floatingButton={floatingButton} />
89
85
  )}
90
86
  tabBarOptions={{
91
87
  style: {
@@ -50,9 +50,7 @@ const StackScreen: React.FC<ScreenParams> = props => {
50
50
  * tracking for screen
51
51
  */
52
52
  useEffect(() => {
53
- if (__DEV__ && (!screenName || screenName == 'Invalid')) {
54
- Alert.alert('Design system', `Unvalidated screen name "${screenName}" !`);
55
- }
53
+ Alert.alert(screenName);
56
54
 
57
55
  navigator?.maxApi?.of?.({screenName});
58
56
 
package/Layout/Card.tsx CHANGED
@@ -144,6 +144,7 @@ const Card: React.FC<CardProps> = ({
144
144
  <GridContext.Provider value={gridContext}>
145
145
  <View
146
146
  {...props}
147
+ onLayout={undefined}
147
148
  style={[
148
149
  {backgroundColor: theme.colors.background.surface},
149
150
  style,
package/Layout/Screen.tsx CHANGED
@@ -296,7 +296,8 @@ const Screen = forwardRef(
296
296
  style={{
297
297
  marginTop: space,
298
298
  flex: item.props?.expanded ? 1 : undefined,
299
- }}>
299
+ }}
300
+ onLayout={item.props?.onLayout}>
300
301
  {item}
301
302
  </View>
302
303
  );
@@ -314,7 +315,8 @@ const Screen = forwardRef(
314
315
  style={{
315
316
  marginTop: space,
316
317
  flex: item?.props?.expanded ? 1 : undefined,
317
- }}>
318
+ }}
319
+ onLayout={item?.props?.onLayout}>
318
320
  {children}
319
321
  </View>
320
322
  );
@@ -151,6 +151,7 @@ const Section: React.FC<SectionProps> = ({
151
151
  }}>
152
152
  <View
153
153
  {...props}
154
+ onLayout={undefined}
154
155
  style={[
155
156
  style,
156
157
  styles.protectedStyle,
package/Loader/index.tsx CHANGED
@@ -1,4 +1,6 @@
1
1
  import Loader from './Loader';
2
2
  import ProgressBar from './ProgressBar';
3
+ import {LoaderProps, ProgressBarProps} from './types';
3
4
 
4
5
  export {Loader, ProgressBar};
6
+ export type {LoaderProps, ProgressBarProps};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.92.8-rc.3",
3
+ "version": "0.92.8-rc.5",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},