react-native-ui-lib 7.46.3-snapshot.7390 → 7.46.3-snapshot.7396
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/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ui-lib",
|
|
3
|
-
"version": "7.46.3-snapshot.
|
|
3
|
+
"version": "7.46.3-snapshot.7396",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"setimmediate": "^1.0.5",
|
|
130
130
|
"shell-utils": "^1.0.10",
|
|
131
131
|
"typescript": "5.0.4",
|
|
132
|
-
"uilib-native": "5.0.0-snapshot.
|
|
132
|
+
"uilib-native": "5.0.0-snapshot.7390"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
135
|
"react": ">=18.3.1",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"react-native-gesture-handler": ">=2.24.0",
|
|
138
138
|
"react-native-reanimated": ">=3.17.5",
|
|
139
139
|
"react-native-ui-lib": "*",
|
|
140
|
-
"uilib-native": "5.0.0-snapshot.
|
|
140
|
+
"uilib-native": "5.0.0-snapshot.7390"
|
|
141
141
|
},
|
|
142
142
|
"jest": {
|
|
143
143
|
"preset": "react-native",
|
|
@@ -36,6 +36,11 @@
|
|
|
36
36
|
},
|
|
37
37
|
{"name": "ignoreBackgroundPress", "type": "boolean", "description": "Whether or not to ignore background press."},
|
|
38
38
|
{"name": "modalProps", "type": "ModalProps", "description": "Pass props to the dialog modal"},
|
|
39
|
+
{
|
|
40
|
+
"name": "disableAnimation",
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"description": "Disable animation (default is false) \nIn some cases you might want to disable the animation (probably for Android only), this is when the dialog is scrollable and has touchable items in the scrollable area. \nThis is a temporary solution for a reanimated + RN77\\8 bug. \nSee https://github.com/software-mansion/react-native-reanimated/issues/6659 and https://github.com/facebook/react-native/issues/49694"
|
|
43
|
+
},
|
|
39
44
|
{
|
|
40
45
|
"name": "testID",
|
|
41
46
|
"type": "string",
|
|
@@ -30,6 +30,7 @@ const Dialog = (props, ref) => {
|
|
|
30
30
|
ignoreBackgroundPress,
|
|
31
31
|
modalProps = {},
|
|
32
32
|
useSafeArea,
|
|
33
|
+
disableAnimation = false,
|
|
33
34
|
testID,
|
|
34
35
|
children
|
|
35
36
|
} = props;
|
|
@@ -138,7 +139,7 @@ const Dialog = (props, ref) => {
|
|
|
138
139
|
const style = useMemo(() => {
|
|
139
140
|
return [styles.defaultDialogStyle, {
|
|
140
141
|
backgroundColor: Colors.$backgroundDefault
|
|
141
|
-
}, containerStyle, animatedStyle, width ? {
|
|
142
|
+
}, containerStyle, disableAnimation ? undefined : animatedStyle, width ? {
|
|
142
143
|
width
|
|
143
144
|
} : undefined, height ? {
|
|
144
145
|
height
|
|
@@ -118,6 +118,13 @@ export interface _DialogProps extends AlignmentModifiers, Pick<ViewProps, 'useSa
|
|
|
118
118
|
* Additional props for the modal.
|
|
119
119
|
*/
|
|
120
120
|
modalProps?: ModalProps;
|
|
121
|
+
/**
|
|
122
|
+
* Disable animation (default is false)
|
|
123
|
+
* In some cases you might want to disable the animation (probably for Android only), this is when the dialog is scrollable and has touchable items in the scrollable area.
|
|
124
|
+
* This is a temporary solution for a reanimated + RN77\8 bug.
|
|
125
|
+
* See https://github.com/software-mansion/react-native-reanimated/issues/6659 and https://github.com/facebook/react-native/issues/49694
|
|
126
|
+
*/
|
|
127
|
+
disableAnimation?: boolean;
|
|
121
128
|
/**
|
|
122
129
|
* Used to locate this view in end-to-end tests
|
|
123
130
|
* The container has the unchanged id.
|
package/react-native.config.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
dependency: {
|
|
3
|
-
platforms: {
|
|
4
|
-
/* TODO: Once we upgrade to RN69 we should try using podspecPath again, for now I copied ReactNativeUiLib.podspec file to the root - it seems to work
|
|
5
|
-
I copied it, because we need it for both the main uilib and the uilib-native package */
|
|
6
|
-
// ios: {
|
|
7
|
-
// podspecPath: './lib/ReactNativeUiLib.podspec'
|
|
8
|
-
// },
|
|
9
|
-
android: {
|
|
10
|
-
sourceDir: '../uilib-native/android/',
|
|
11
|
-
packageImportPath: `import com.wix.reactnativeuilib.dynamicfont.DynamicFontPackage;
|
|
12
|
-
import com.wix.reactnativeuilib.highlighterview.HighlighterViewPackage;
|
|
13
|
-
import com.wix.reactnativeuilib.keyboardinput.KeyboardInputPackage;`,
|
|
14
|
-
packageInstance: `new DynamicFontPackage(),
|
|
15
|
-
new HighlighterViewPackage(),
|
|
16
|
-
new KeyboardInputPackage(getApplication())`
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|