@fto-consult/expo-ui 6.23.11 → 6.24.1
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/index.js
CHANGED
|
@@ -51,6 +51,7 @@ export default function registerApp (opts){
|
|
|
51
51
|
registerRootComponent(MainAppEntry);
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
/**
|
|
54
55
|
registerApp({
|
|
55
56
|
navigation : {
|
|
56
57
|
screens : require("./src/test-screens").default
|
|
@@ -61,3 +62,4 @@ registerApp({
|
|
|
61
62
|
return Promise.resolve("test ted")
|
|
62
63
|
}
|
|
63
64
|
});
|
|
65
|
+
*/
|
package/package.json
CHANGED
|
@@ -198,14 +198,14 @@ const DialogComponent = React.forwardRef((props,ref)=>{
|
|
|
198
198
|
testID = {testID}
|
|
199
199
|
contentContainerProps = {contentContainerProps}
|
|
200
200
|
>
|
|
201
|
-
<KeyboardAvoidingView
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
201
|
+
<KeyboardAvoidingView
|
|
202
|
+
isPreloader={isPreloader}
|
|
203
|
+
testID = {testID+"_Overlay_KeyboardAvoidingView"}
|
|
204
|
+
ref={overlayRef}
|
|
205
|
+
{...overlayProps}
|
|
206
|
+
style={[styles.overlay,isAlert && styles.overlayAlert,{backgroundColor},overlayProps.style,fullScreenStyle]}
|
|
207
|
+
>
|
|
208
|
+
{(!isAlert && (actions || title || subtitle)) ? <AppBarDialog
|
|
209
209
|
actionsProps = {actionsProps}
|
|
210
210
|
testID = {testID+"_AppBar"}
|
|
211
211
|
{...appBarProps}
|
|
@@ -270,7 +270,6 @@ const DialogComponent = React.forwardRef((props,ref)=>{
|
|
|
270
270
|
fullScreen = {customFullScreen}
|
|
271
271
|
children = {footer}
|
|
272
272
|
/> : null}
|
|
273
|
-
</Surface>
|
|
274
273
|
</KeyboardAvoidingView>
|
|
275
274
|
</ModalComponent>
|
|
276
275
|
</Portal>
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import {KeyboardAvoidingView,Platform,StyleSheet} from 'react-native';
|
|
2
2
|
import {isAndroid} from "$platform";
|
|
3
|
+
import React from "$react";
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
const KeyboardAvoidingViewComponent = React.forwardRef(({children,isPreloader,...rest },ref)=>{
|
|
5
6
|
return (
|
|
6
7
|
<KeyboardAvoidingView
|
|
8
|
+
ref={ref ? ref: x=>x}
|
|
7
9
|
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
|
|
8
10
|
keyboardVerticalOffset={isAndroid()?0:80}
|
|
9
11
|
{...rest}
|
|
10
|
-
style = {[styles.wrapper,rest.style]}
|
|
12
|
+
style = {[!isPreloader && styles.wrapper,rest.style]}
|
|
11
13
|
>
|
|
12
14
|
{children}
|
|
13
15
|
</KeyboardAvoidingView>
|
|
14
16
|
);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
+
});
|
|
18
|
+
KeyboardAvoidingViewComponent.displayName = "KeyboardAvoidingViewComponent";
|
|
19
|
+
export default KeyboardAvoidingViewComponent;
|
|
17
20
|
const styles = StyleSheet.create({
|
|
18
21
|
wrapper: {
|
|
19
22
|
flex: 1,
|