@shoutem/ui 9.0.7 → 9.1.0

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.
@@ -1,8 +1,17 @@
1
+ import React from 'react';
1
2
  import { View } from 'react-native';
3
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
2
4
  import { connectAnimation } from '@shoutem/animation';
3
5
  import { connectStyle } from '@shoutem/theme';
4
6
 
5
- const AnimatedScreen = connectAnimation(View);
7
+ const SafeAreaAwareView = ({ style, ...rest }) => {
8
+ const insets = useSafeAreaInsets();
9
+ const safeAreaStyle = { paddingBottom: insets.bottom };
10
+
11
+ return <View {...rest} style={[style, safeAreaStyle]} />;
12
+ };
13
+
14
+ const AnimatedScreen = connectAnimation(SafeAreaAwareView);
6
15
  const Screen = connectStyle('shoutem.ui.Screen')(AnimatedScreen);
7
16
 
8
17
  export { Screen };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoutem/ui",
3
- "version": "9.0.7",
3
+ "version": "9.1.0",
4
4
  "description": "Styleable set of components for React Native applications",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
package/theme.js CHANGED
@@ -977,12 +977,6 @@ export default () => {
977
977
  paddingBottom: HOME_INDICATOR_PADDING,
978
978
  },
979
979
 
980
- 'shoutem.ui.ListView': {
981
- listContent: {
982
- paddingBottom: HOME_INDICATOR_PADDING,
983
- },
984
- },
985
-
986
980
  backgroundColor: resolveVariable('backgroundColor'),
987
981
  flex: 1,
988
982
  },