@momo-kits/foundation 0.161.2-beta.18 → 0.161.2-beta.19

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 CHANGED
@@ -204,9 +204,10 @@ const Screen = forwardRef(
204
204
  let handleScroll;
205
205
  let Component: any = View;
206
206
 
207
- let keyboardOffset = heightHeader - Math.min(insets.bottom, 21);
207
+ const bottomInset = Platform.OS === 'ios' ? Math.min(insets.bottom, 21) : insets.bottom;
208
+ let keyboardOffset = heightHeader - bottomInset;
208
209
  if (headerType === 'extended' || animatedHeader || inputSearchProps) {
209
- keyboardOffset = -Math.min(insets.bottom, 21);
210
+ keyboardOffset = -bottomInset;
210
211
  }
211
212
 
212
213
  /**
@@ -616,7 +617,7 @@ const Screen = forwardRef(
616
617
  {...floatingButtonProps}
617
618
  animatedValue={animatedValue.current}
618
619
  bottom={
619
- Footer || isTab ? 12 : Math.min(insets.bottom, 21) + Spacing.S
620
+ Footer || isTab ? 12 : bottomInset + Spacing.S
620
621
  }
621
622
  />
622
623
  </View>
@@ -627,7 +628,7 @@ const Screen = forwardRef(
627
628
  style={[
628
629
  styles.shadow,
629
630
  {
630
- paddingBottom: Math.min(insets.bottom, 21) + Spacing.S,
631
+ paddingBottom: bottomInset + Spacing.S,
631
632
  backgroundColor: theme.colors.background.surface,
632
633
  },
633
634
  ]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.161.2-beta.18",
3
+ "version": "0.161.2-beta.19",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},