react-crud-mobile 1.0.447 → 1.0.449
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/dist/react-crud-mobile.cjs.development.js +14 -15
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +14 -15
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +2 -7
- package/src/elements/core/UIView.tsx +10 -3
|
@@ -61,13 +61,8 @@ export default function UIModal(props: ChildType) {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
useEffect(() => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
StatusBar.setBackgroundColor?.(theme.colors.primary);
|
|
67
|
-
} else {
|
|
68
|
-
StatusBar.setBarStyle('dark-content');
|
|
69
|
-
StatusBar.setBackgroundColor?.('#f5f5f5');
|
|
70
|
-
}
|
|
64
|
+
StatusBar.setBarStyle('light-content');
|
|
65
|
+
StatusBar.setBackgroundColor?.(theme.colors.primary);
|
|
71
66
|
}, [modalVisible]);
|
|
72
67
|
|
|
73
68
|
if (!scope.currentDialog) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { StatusBar } from 'expo-status-bar';
|
|
2
1
|
import {
|
|
3
2
|
Keyboard,
|
|
4
3
|
KeyboardAvoidingView,
|
|
@@ -14,9 +13,12 @@ import {
|
|
|
14
13
|
} from 'react-native-safe-area-context';
|
|
15
14
|
|
|
16
15
|
import UIChildren from '../UIChildren';
|
|
17
|
-
import { ChildType } from 'react-crud-utils';
|
|
16
|
+
import { ChildType, useTheme } from 'react-crud-utils';
|
|
17
|
+
import { useEffect } from 'react';
|
|
18
|
+
import { StatusBar } from 'react-native';
|
|
18
19
|
|
|
19
20
|
export default function UIView({ scope, children }: ChildType) {
|
|
21
|
+
const theme = useTheme();
|
|
20
22
|
const header = scope.getPart('header', null, []);
|
|
21
23
|
const dismissKeyboard = () => {
|
|
22
24
|
if (Platform.OS !== 'web') {
|
|
@@ -24,10 +26,15 @@ export default function UIView({ scope, children }: ChildType) {
|
|
|
24
26
|
}
|
|
25
27
|
};
|
|
26
28
|
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
StatusBar.setBarStyle('light-content');
|
|
31
|
+
StatusBar.setBackgroundColor?.(theme.colors.primary);
|
|
32
|
+
}, []);
|
|
27
33
|
return (
|
|
28
34
|
<SafeAreaProvider>
|
|
29
|
-
<StatusBar style="light" />
|
|
30
35
|
<SafeAreaContextView style={scope.getStyle('view', styles.view)}>
|
|
36
|
+
<StatusBar barStyle="light-content" />
|
|
37
|
+
|
|
31
38
|
<KeyboardAvoidingView
|
|
32
39
|
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
|
|
33
40
|
style={{
|