@particle-network/ui-native 0.1.4-beta.6 → 0.1.4-beta.8
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.
|
@@ -116,13 +116,13 @@ const UXModal = /*#__PURE__*/ forwardRef((props, scrollViewRef)=>{
|
|
|
116
116
|
isDragging,
|
|
117
117
|
touchStartY,
|
|
118
118
|
modalHeight,
|
|
119
|
-
height,
|
|
120
119
|
translateY,
|
|
121
|
-
onDismiss
|
|
120
|
+
onDismiss,
|
|
121
|
+
isAndroid
|
|
122
122
|
]);
|
|
123
123
|
const keyboardAvoidValue = useMemo(()=>{
|
|
124
|
-
const containerValue = 'container' === keyboardAvoidPosition ? Math.max(insets.bottom, ms(32), keyboardHeight) : Math.max(insets.bottom, ms(32));
|
|
125
|
-
const contentValue = 'content' === keyboardAvoidPosition && keyboardHeight > 0 ? keyboardHeight - footerHeight - Math.max(insets.bottom, ms(32)) : 0;
|
|
124
|
+
const containerValue = 'container' === keyboardAvoidPosition ? Math.max(insets.bottom, ms(32), keyboardHeight + (isAndroid ? insets.bottom : 0)) : Math.max(insets.bottom, ms(32));
|
|
125
|
+
const contentValue = 'content' === keyboardAvoidPosition && keyboardHeight > 0 ? keyboardHeight - footerHeight - Math.max(insets.bottom, ms(32)) + (isAndroid ? insets.bottom : 0) : 0;
|
|
126
126
|
return {
|
|
127
127
|
containerValue,
|
|
128
128
|
contentValue
|
|
@@ -131,7 +131,9 @@ const UXModal = /*#__PURE__*/ forwardRef((props, scrollViewRef)=>{
|
|
|
131
131
|
keyboardAvoidPosition,
|
|
132
132
|
insets.bottom,
|
|
133
133
|
keyboardHeight,
|
|
134
|
-
footerHeight
|
|
134
|
+
footerHeight,
|
|
135
|
+
isAndroid,
|
|
136
|
+
ms
|
|
135
137
|
]);
|
|
136
138
|
const styles = StyleSheet.create({
|
|
137
139
|
modalContainer: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-native",
|
|
3
|
-
"version": "0.1.4-beta.
|
|
3
|
+
"version": "0.1.4-beta.8",
|
|
4
4
|
"main": "./entry.js",
|
|
5
5
|
"react-native": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"zustand": "^5.0.8",
|
|
93
93
|
"@particle-network/eslint-config": "0.3.0",
|
|
94
94
|
"@particle-network/lintstaged-config": "0.1.0",
|
|
95
|
-
"@particle-network/icons": "0.1.3-beta.
|
|
95
|
+
"@particle-network/icons": "0.1.3-beta.5"
|
|
96
96
|
},
|
|
97
97
|
"overrides": {
|
|
98
98
|
"react-docgen-typescript": "2.2.2",
|