@umituz/react-native-design-system 4.25.55 → 4.25.57

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-design-system",
3
- "version": "4.25.55",
3
+ "version": "4.25.57",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, onboarding, and loading utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -184,7 +184,7 @@
184
184
  "offline",
185
185
  "loading"
186
186
  ],
187
- "author": "\u00dcmit UZ <umit@umituz.com>",
187
+ "author": "Ümit UZ <umit@umituz.com>",
188
188
  "license": "MIT",
189
189
  "repository": {
190
190
  "type": "git",
@@ -67,24 +67,20 @@ export const ScreenLayout: React.FC<ScreenLayoutProps> = (props: ScreenLayoutPro
67
67
  }
68
68
  ]}>
69
69
  {header}
70
- {scrollable ? (
71
- <ScrollView
72
- style={styles.scrollView}
73
- contentContainerStyle={[
74
- styles.scrollContent,
75
- contentContainerStyle,
76
- ]}
77
- showsVerticalScrollIndicator={!hideScrollIndicator}
78
- keyboardShouldPersistTaps={keyboardAvoiding ? 'handled' : 'never'}
79
- refreshControl={refreshControl}
80
- >
81
- {children}
82
- </ScrollView>
83
- ) : (
84
- <View style={[styles.content, contentContainerStyle]}>
85
- {children}
86
- </View>
87
- )}
70
+ <ScrollView
71
+ style={styles.scrollView}
72
+ contentContainerStyle={[
73
+ styles.scrollContent,
74
+ contentContainerStyle,
75
+ ]}
76
+ scrollEnabled={scrollable}
77
+ showsVerticalScrollIndicator={scrollable && !hideScrollIndicator}
78
+ keyboardShouldPersistTaps={keyboardAvoiding ? 'handled' : 'never'}
79
+ refreshControl={scrollable ? refreshControl : undefined}
80
+ nestedScrollEnabled
81
+ >
82
+ {children}
83
+ </ScrollView>
88
84
  {footer && (
89
85
  <View style={{ paddingBottom }}>
90
86
  {footer}
@@ -27,11 +27,6 @@ export const getScreenLayoutStyles = (
27
27
  width: '100%',
28
28
  ...(maxWidth ? { maxWidth, alignSelf: 'center' as const } : {}),
29
29
  },
30
- content: {
31
- flex: 1,
32
- paddingTop: verticalPadding,
33
- paddingHorizontal: horizontalPadding,
34
- },
35
30
  scrollView: {
36
31
  flex: 1,
37
32
  },