clwy-react-native-tableview-simple 4.5.2 → 4.5.4

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "clwy-react-native-tableview-simple",
3
3
  "description": "React Native component for TableView made with pure CSS",
4
4
  "homepage": "https://github.com/Purii/react-native-tableview-simple",
5
- "version": "4.5.2",
5
+ "version": "4.5.4",
6
6
  "author": "Patrick Böder <hello@patrickpuritscher.com>",
7
7
  "scripts": {
8
8
  "clean": "watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn",
@@ -14,7 +14,7 @@ import {
14
14
  ImageProps,
15
15
  } from 'react-native';
16
16
  import { ThemeContext } from './Theme';
17
- import { SafeAreaView } from 'react-native-safe-area-context';
17
+ import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
18
18
 
19
19
  export interface CellInterface {
20
20
  accessory?:
@@ -394,18 +394,20 @@ const Cell: React.FC<CellInterface> = ({
394
394
  * @return {View} Complete View with cell elements
395
395
  */
396
396
  const renderCellWithSafeAreaView = (): React.ReactNode => (
397
- <SafeAreaView
398
- style={[
399
- localStyles.cellBackgroundColor,
400
- localStyles.cellSafeAreaContainer,
401
- ]}>
402
- <View style={localStyles.cell}>
403
- {cellImageView || renderImageView()}
404
- {cellContentView || renderCellContentView()}
405
- {cellAccessoryView || renderAccessoryView()}
406
- </View>
407
- {children}
408
- </SafeAreaView>
397
+ <SafeAreaProvider>
398
+ <SafeAreaView
399
+ style={[
400
+ localStyles.cellBackgroundColor,
401
+ localStyles.cellSafeAreaContainer,
402
+ ]}>
403
+ <View style={localStyles.cell}>
404
+ {cellImageView || renderImageView()}
405
+ {cellContentView || renderCellContentView()}
406
+ {cellAccessoryView || renderAccessoryView()}
407
+ </View>
408
+ {children}
409
+ </SafeAreaView>
410
+ </SafeAreaProvider>
409
411
  );
410
412
 
411
413
  if (isPressable && !isDisabled) {
@@ -7,7 +7,7 @@ import {
7
7
  TextStyle,
8
8
  ViewStyle,
9
9
  } from 'react-native';
10
- import { SafeAreaView } from 'react-native-safe-area-context';
10
+ import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
11
11
 
12
12
  import Separator from './Separator';
13
13
  import { CellInterface } from './Cell';
@@ -172,13 +172,15 @@ const Section: React.FC<SectionInterface> = ({
172
172
  if (header && withSafeAreaView) {
173
173
  return (
174
174
  <View style={styles.sectionheader}>
175
- <SafeAreaView>
176
- <Text
177
- allowFontScaling={allowFontScaling}
178
- style={localStyles.sectionheaderText}>
179
- {header}
180
- </Text>
181
- </SafeAreaView>
175
+ <SafeAreaProvider>
176
+ <SafeAreaView>
177
+ <Text
178
+ allowFontScaling={allowFontScaling}
179
+ style={localStyles.sectionheaderText}>
180
+ {header}
181
+ </Text>
182
+ </SafeAreaView>
183
+ </SafeAreaProvider>
182
184
  </View>
183
185
  );
184
186
  }
@@ -203,13 +205,15 @@ const Section: React.FC<SectionInterface> = ({
203
205
  if (footer && withSafeAreaView) {
204
206
  return (
205
207
  <View style={styles.sectionfooter}>
206
- <SafeAreaView>
207
- <Text
208
- allowFontScaling={allowFontScaling}
209
- style={localStyles.sectionfooterText}>
210
- {footer}
211
- </Text>
212
- </SafeAreaView>
208
+ <SafeAreaProvider>
209
+ <SafeAreaView>
210
+ <Text
211
+ allowFontScaling={allowFontScaling}
212
+ style={localStyles.sectionfooterText}>
213
+ {footer}
214
+ </Text>
215
+ </SafeAreaView>
216
+ </SafeAreaProvider>
213
217
  </View>
214
218
  );
215
219
  }
@@ -6,7 +6,7 @@ import {
6
6
  ViewStyle,
7
7
  } from 'react-native';
8
8
  import { ThemeContext } from './Theme';
9
- import { SafeAreaView } from 'react-native-safe-area-context';
9
+ import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
10
10
 
11
11
  export interface SeparatorInterface {
12
12
  backgroundColor?: ViewStyle['backgroundColor'];
@@ -49,9 +49,11 @@ const Separator: React.FC<SeparatorInterface> = ({
49
49
 
50
50
  if (withSafeAreaView) {
51
51
  return (
52
- <SafeAreaView style={localStyles.separator}>
53
- <View style={localStyles.separatorInner} />
54
- </SafeAreaView>
52
+ <SafeAreaProvider>
53
+ <SafeAreaView style={localStyles.separator}>
54
+ <View style={localStyles.separatorInner} />
55
+ </SafeAreaView>
56
+ </SafeAreaProvider>
55
57
  );
56
58
  }
57
59
  return (