react-crud-mobile 1.0.351 → 1.0.352

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.
@@ -8,15 +8,8 @@ import {
8
8
  View,
9
9
  StatusBar,
10
10
  SafeAreaView,
11
- ScrollView,
12
- KeyboardAvoidingView,
13
- Platform,
14
11
  } from 'react-native';
15
12
  import UIChildren from '../UIChildren';
16
- import {
17
- SafeAreaProvider,
18
- SafeAreaView as SafeAreaContextView,
19
- } from 'react-native-safe-area-context';
20
13
 
21
14
  export default function UIModal(props: ChildType) {
22
15
  let [modalVisible, setModalVisible] = useState(false);
@@ -49,35 +42,26 @@ export default function UIModal(props: ChildType) {
49
42
  visible={modalVisible}
50
43
  onRequestClose={() => setModalVisible(false)}
51
44
  >
52
- <SafeAreaProvider>
53
- <StatusBar
54
- barStyle="dark-content"
55
- backgroundColor={theme.colors.primary}
56
- />
57
-
58
- <KeyboardAvoidingView
59
- behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
60
- style={{
61
- flex: 1, // 🔹 Ocupa 100% da tela
62
- justifyContent: 'center',
63
- }}
64
- >
65
- <ScrollView keyboardShouldPersistTaps="handled">
66
- <View style={style('modalHeader')}>
67
- <TouchableOpacity
68
- onPress={() => setModalVisible(false)}
69
- style={style('modalCloseButton')}
70
- >
71
- <Text style={style('modalCloseText')}>X</Text>
72
- </TouchableOpacity>
73
- <Text style={style('modalTitle')}>{label}</Text>
74
- </View>
75
- <View style={style('modalContent')}>
76
- <UIChildren scope={scope}>{props.children}</UIChildren>
77
- </View>
78
- </ScrollView>
79
- </KeyboardAvoidingView>
80
- </SafeAreaProvider>
45
+ <StatusBar
46
+ barStyle="dark-content"
47
+ backgroundColor={theme.colors.primary}
48
+ />
49
+ <SafeAreaView style={style('modalSafe')}>
50
+ <View style={style('modalBody')}>
51
+ <View style={style('modalHeader')}>
52
+ <TouchableOpacity
53
+ onPress={() => setModalVisible(false)}
54
+ style={style('modalCloseButton')}
55
+ >
56
+ <Text style={style('modalCloseText')}>X</Text>
57
+ </TouchableOpacity>
58
+ <Text style={style('modalTitle')}>{label}</Text>
59
+ </View>
60
+ <View style={style('modalContent')}>
61
+ <UIChildren scope={scope}>{props.children}</UIChildren>
62
+ </View>
63
+ </View>
64
+ </SafeAreaView>
81
65
  </Modal>
82
66
  );
83
67
  }
@@ -85,12 +69,12 @@ export default function UIModal(props: ChildType) {
85
69
  const styles = StyleSheet.create({
86
70
  modalBody: {
87
71
  flex: 1,
72
+ backgroundColor: '#f5f5f5',
88
73
  justifyContent: 'flex-start',
89
74
  width: '100%',
90
75
  },
91
76
  modalSafe: {
92
77
  flex: 1,
93
- backgroundColor: '#f5f5f5',
94
78
  paddingTop: StatusBar.currentHeight || 0, // Considera a altura da barra de status no Android
95
79
  },
96
80
  modalHeader: {