react-native-ui-lib 7.45.0-snapshot.7266 → 7.46.0
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/babel.config.js +0 -12
- package/index.js +0 -1
- package/lib/android/build.gradle +5 -5
- package/lib/android/src/main/java/com/wix/reactnativeuilib/UiLibPackageList.java +2 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.java +23 -31
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReactHacks.java +30 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.java +34 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.java +1 -1
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/DefaultKeyListener.java +33 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/KeyListenerProxy.java +53 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.java +54 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.java +28 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/ViewUtils.java +36 -0
- package/lib/components/{HighlighterOverlayView/index.d.ts → HighlighterOverlayView.d.ts} +1 -1
- package/lib/components/HighlighterOverlayView.js +40 -0
- package/lib/components/{HighlighterOverlayView/index.web.d.ts → HighlighterOverlayView.web.d.ts} +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.android.d.ts +2 -5
- package/lib/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.android.js +28 -0
- package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.ios.d.ts +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.ios.js +3 -3
- package/lib/components/Keyboard/{KeyboardAccessoryView/CustomKeyboardView → KeyboardInput}/CustomKeyboardViewBase.d.ts +0 -3
- package/lib/components/Keyboard/{KeyboardAccessoryView/CustomKeyboardView → KeyboardInput}/CustomKeyboardViewBase.js +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView/index.d.ts → KeyboardInput/KeyboardAccessoryView.d.ts} +1 -11
- package/lib/components/Keyboard/{KeyboardAccessoryView/index.js → KeyboardInput/KeyboardAccessoryView.js} +5 -31
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/index.d.ts → KeyboardInput/KeyboardRegistry.d.ts} +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/index.js → KeyboardInput/KeyboardRegistry.js} +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry → KeyboardInput}/__tests__/KeyboardRegistry.spec.js +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/keyboardAccessoryView.api.json +5 -5
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry → KeyboardInput}/keyboardRegistry.api.json +9 -9
- package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.d.ts +11 -0
- package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.js +17 -0
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager → KeyboardInput/utils}/__tests__/EventEmitterManager.spec.js +1 -1
- package/lib/components/Keyboard/{KeyboardAwareInsetsView/index.d.ts → KeyboardTracking/KeyboardAwareInsetsView.d.ts} +1 -1
- package/lib/components/Keyboard/{KeyboardAwareInsetsView/index.js → KeyboardTracking/KeyboardAwareInsetsView.js} +1 -1
- package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.ios.d.ts +4 -1
- package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.ios.js +8 -5
- package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.d.ts +2 -2
- package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/keyboardTrackingView.api.json +20 -11
- package/lib/components/Keyboard/index.d.ts +6 -6
- package/lib/components/Keyboard/index.js +6 -6
- package/lib/components/SafeArea/SafeAreaInsetsManager.d.ts +7 -21
- package/lib/components/SafeArea/SafeAreaInsetsManager.js +31 -95
- package/lib/components/SafeArea/SafeAreaSpacerView.d.ts +2 -2
- package/lib/components/SafeArea/SafeAreaSpacerView.js +9 -63
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.js +1 -1
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +8 -52
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.h +7 -1
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.m +1 -1
- package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m +41 -109
- package/lib/package.json +1 -1
- package/lib/react-native.config.js +3 -1
- package/metro.config.js +2 -2
- package/package.json +24 -24
- package/panningViews.d.ts +2 -0
- package/panningViews.js +1 -0
- package/react-native.config.js +3 -1
- package/sharedTransition.d.ts +2 -0
- package/sharedTransition.js +1 -0
- package/src/commons/Constants.js +5 -2
- package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +1 -5
- package/src/components/actionSheet/index.d.ts +12 -2
- package/src/components/actionSheet/index.js +42 -3
- package/src/components/badge/index.d.ts +47 -107
- package/src/components/button/Button.driver.new.d.ts +1 -0
- package/src/components/button/Button.driver.new.js +4 -0
- package/src/components/button/button.api.json +1 -1
- package/src/components/button/index.d.ts +23 -53
- package/src/components/button/types.d.ts +1 -0
- package/src/components/colorPicker/ColorPickerDialog.d.ts +1 -1
- package/src/components/colorPicker/ColorPickerDialog.js +1 -1
- package/src/components/dateTimePicker/index.d.ts +5 -186
- package/src/components/dateTimePicker/index.js +4 -3
- package/src/components/dialog/DialogDismissibleView.d.ts +34 -0
- package/src/components/dialog/DialogDismissibleView.js +184 -0
- package/src/components/dialog/OverlayFadingBackground.d.ts +14 -0
- package/src/components/dialog/OverlayFadingBackground.js +45 -0
- package/src/components/dialog/dialog.api.json +37 -31
- package/src/components/dialog/index.d.ts +105 -13
- package/src/components/dialog/index.js +212 -204
- package/src/components/drawer/Swipeable.js +2 -1
- package/src/components/drawer/index.js +25 -31
- package/src/components/fadedScrollView/index.js +2 -7
- package/src/components/featureHighlight/index.d.ts +1 -1
- package/src/components/index.js +19 -0
- package/src/components/modal/index.d.ts +0 -5
- package/src/components/modal/index.js +10 -14
- package/src/components/modal/modal.api.json +0 -5
- package/src/components/panningViews/asPanViewConsumer.d.ts +3 -0
- package/src/components/panningViews/asPanViewConsumer.js +16 -0
- package/src/components/panningViews/panDismissibleView.d.ts +51 -0
- package/src/components/panningViews/panDismissibleView.js +350 -0
- package/src/components/panningViews/panGestureView.d.ts +23 -0
- package/src/components/panningViews/panGestureView.js +156 -0
- package/src/components/panningViews/panListenerView.d.ts +66 -0
- package/src/components/panningViews/panListenerView.js +155 -0
- package/src/components/panningViews/panResponderView.d.ts +19 -0
- package/src/components/panningViews/panResponderView.js +79 -0
- package/src/components/panningViews/panningContext.d.ts +3 -0
- package/src/components/panningViews/panningContext.js +4 -0
- package/src/components/panningViews/panningProvider.d.ts +73 -0
- package/src/components/panningViews/panningProvider.js +101 -0
- package/src/components/picker/Picker.driver.new.d.ts +3 -2
- package/src/components/picker/Picker.driver.new.js +3 -3
- package/src/components/picker/PickerItem.js +20 -6
- package/src/components/picker/PickerPresenter.d.ts +1 -0
- package/src/components/picker/PickerPresenter.js +23 -1
- package/src/components/picker/api/picker.api.json +1 -0
- package/src/components/picker/api/pickerItem.api.json +5 -0
- package/src/components/picker/helpers/useFieldType.d.ts +23 -53
- package/src/components/picker/helpers/usePickerLabel.d.ts +1 -1
- package/src/components/picker/helpers/usePickerLabel.js +3 -2
- package/src/components/picker/helpers/usePickerMigrationWarnings.d.ts +1 -1
- package/src/components/picker/helpers/usePickerMigrationWarnings.js +12 -0
- package/src/components/picker/helpers/usePickerSearch.d.ts +1 -1
- package/src/components/picker/helpers/usePickerSearch.js +8 -4
- package/src/components/picker/helpers/usePickerSelection.d.ts +1 -1
- package/src/components/picker/helpers/usePickerSelection.js +10 -2
- package/src/components/picker/index.js +22 -4
- package/src/components/picker/types.d.ts +24 -1
- package/src/components/segmentedControl/index.js +3 -3
- package/src/components/sharedTransition/ShareTransitionContext.js +3 -0
- package/src/components/sharedTransition/SharedArea.js +153 -0
- package/src/components/sharedTransition/SourceElement.js +44 -0
- package/src/components/sharedTransition/TargetElement.js +38 -0
- package/src/components/sharedTransition/index.js +9 -0
- package/src/components/slider/GradientSlider.d.ts +1 -1
- package/src/components/sortableGridList/SortableItem.js +4 -13
- package/src/components/sortableList/SortableListItem.js +4 -13
- package/src/components/stackAggregator/index.js +11 -16
- package/src/components/text/Text.driver.new.d.ts +2 -2
- package/src/components/text/Text.driver.new.js +2 -2
- package/src/components/textField/Input.js +1 -0
- package/src/components/textField/TextField.driver.new.d.ts +3 -2
- package/src/components/textField/TextField.driver.new.js +2 -2
- package/src/components/textField/presets/outline.d.ts +46 -106
- package/src/components/textField/presets/underline.d.ts +46 -106
- package/src/components/textField/usePreset.d.ts +44 -72
- package/src/incubator/dialog/dialog.api.json +54 -0
- package/src/{components → incubator}/dialog/dialogHeader.api.json +2 -2
- package/src/incubator/dialog/index.d.ts +15 -0
- package/src/incubator/dialog/index.js +218 -0
- package/src/{components → incubator}/dialog/types.d.ts +19 -0
- package/src/{components → incubator}/dialog/types.js +3 -1
- package/src/{components → incubator}/dialog/useDialogContent.d.ts +1 -1
- package/src/incubator/expandableOverlay/ExpandableOverlay.driver.js +1 -1
- package/src/incubator/expandableOverlay/index.d.ts +3 -42
- package/src/incubator/expandableOverlay/index.js +4 -1
- package/src/{hooks/useHiddenLocation/index.d.ts → incubator/hooks/useHiddenLocation.d.ts} +1 -1
- package/src/{hooks/useHiddenLocation/index.web.d.ts → incubator/hooks/useHiddenLocation.web.d.ts} +1 -1
- package/src/incubator/index.d.ts +2 -0
- package/src/incubator/index.js +2 -0
- package/src/{components → incubator}/panView/index.d.ts +3 -3
- package/src/{components → incubator}/panView/index.js +4 -4
- package/src/{components → incubator}/panView/usePanGesture.d.ts +1 -1
- package/src/incubator/toast/Toast.driver.new.d.ts +1 -0
- package/src/incubator/toast/index.js +1 -1
- package/src/index.d.ts +10 -3
- package/src/index.js +160 -41
- package/src/testkit/index.d.ts +1 -1
- package/src/testkit/index.js +1 -1
- package/src/testkit/new/Component.driver.d.ts +1 -4
- package/src/testkit/new/Component.driver.js +3 -3
- package/lib/components/HighlighterOverlayView/index.js +0 -49
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.android.js +0 -51
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.d.ts +0 -26
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.js +0 -91
- package/lib/components/SafeArea/__tests__/SafeAreaInsetsManager.spec.js +0 -274
- package/lib/components/SafeArea/index.d.ts +0 -10
- package/lib/components/SafeArea/index.js +0 -11
- package/panView.d.ts +0 -2
- package/panView.js +0 -1
- /package/lib/components/{HighlighterOverlayView/index.web.js → HighlighterOverlayView.web.js} +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.web.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.web.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.android.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.android.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.ios.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/index.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/index.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.d.ts → KeyboardInput/utils/EventEmitterManager.d.ts} +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.js → KeyboardInput/utils/EventEmitterManager.js} +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.android.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.android.js +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.js +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.web.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.web.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAwareInsetsView → KeyboardTracking}/keyboardAwareInsetsView.api.json +0 -0
- /package/src/{components → incubator}/dialog/Dialog.driver.new.d.ts +0 -0
- /package/src/{components → incubator}/dialog/Dialog.driver.new.js +0 -0
- /package/src/{components → incubator}/dialog/DialogHeader.d.ts +0 -0
- /package/src/{components → incubator}/dialog/DialogHeader.js +0 -0
- /package/src/{components → incubator}/dialog/useDialogContent.js +0 -0
- /package/src/{hooks/useHiddenLocation/index.js → incubator/hooks/useHiddenLocation.js} +0 -0
- /package/src/{hooks/useHiddenLocation/index.web.js → incubator/hooks/useHiddenLocation.web.js} +0 -0
- /package/src/{components → incubator}/panView/panningUtil.d.ts +0 -0
- /package/src/{components → incubator}/panView/panningUtil.js +0 -0
- /package/src/{components → incubator}/panView/usePanGesture.js +0 -0
package/src/index.js
CHANGED
|
@@ -28,6 +28,9 @@ var _exportNames = {
|
|
|
28
28
|
ExpandableOverlayMethods: true,
|
|
29
29
|
ToastProps: true,
|
|
30
30
|
ToastPresets: true,
|
|
31
|
+
PanViewProps: true,
|
|
32
|
+
PanViewDirections: true,
|
|
33
|
+
PanViewDismissThreshold: true,
|
|
31
34
|
Incubator: true,
|
|
32
35
|
Hooks: true,
|
|
33
36
|
Modifiers: true,
|
|
@@ -81,9 +84,6 @@ var _exportNames = {
|
|
|
81
84
|
DateTimePickerMode: true,
|
|
82
85
|
Dialog: true,
|
|
83
86
|
DialogProps: true,
|
|
84
|
-
DialogHeaderProps: true,
|
|
85
|
-
DialogStatics: true,
|
|
86
|
-
DialogImperativeMethods: true,
|
|
87
87
|
DialogDirections: true,
|
|
88
88
|
DialogDirectionsEnum: true,
|
|
89
89
|
Drawer: true,
|
|
@@ -140,6 +140,22 @@ var _exportNames = {
|
|
|
140
140
|
OverlayTypes: true,
|
|
141
141
|
PageControl: true,
|
|
142
142
|
PageControlProps: true,
|
|
143
|
+
PanDismissibleView: true,
|
|
144
|
+
PanDismissibleViewProps: true,
|
|
145
|
+
DismissibleAnimationProps: true,
|
|
146
|
+
PanGestureView: true,
|
|
147
|
+
PanGestureViewProps: true,
|
|
148
|
+
PanListenerView: true,
|
|
149
|
+
PanListenerViewProps: true,
|
|
150
|
+
PanningContext: true,
|
|
151
|
+
PanningProvider: true,
|
|
152
|
+
PanningDirections: true,
|
|
153
|
+
PanLocationProps: true,
|
|
154
|
+
PanAmountsProps: true,
|
|
155
|
+
PanDirectionsProps: true,
|
|
156
|
+
PanResponderView: true,
|
|
157
|
+
PanResponderViewProps: true,
|
|
158
|
+
asPanViewConsumer: true,
|
|
143
159
|
Picker: true,
|
|
144
160
|
PickerProps: true,
|
|
145
161
|
PickerItemProps: true,
|
|
@@ -151,13 +167,6 @@ var _exportNames = {
|
|
|
151
167
|
PickerItemsListProps: true,
|
|
152
168
|
PickerMethods: true,
|
|
153
169
|
PickerSelectionStatusProps: true,
|
|
154
|
-
PanView: true,
|
|
155
|
-
PanViewProps: true,
|
|
156
|
-
PanningDirections: true,
|
|
157
|
-
PanningDirectionsEnum: true,
|
|
158
|
-
PanViewDirections: true,
|
|
159
|
-
PanViewDirectionsEnum: true,
|
|
160
|
-
PanViewDismissThreshold: true,
|
|
161
170
|
PieChart: true,
|
|
162
171
|
PieChartSegmentProps: true,
|
|
163
172
|
ProgressBar: true,
|
|
@@ -179,6 +188,7 @@ var _exportNames = {
|
|
|
179
188
|
SegmentedControlProps: true,
|
|
180
189
|
SegmentedControlItemProps: true,
|
|
181
190
|
SegmentedControlPreset: true,
|
|
191
|
+
SharedTransition: true,
|
|
182
192
|
SkeletonView: true,
|
|
183
193
|
SkeletonViewProps: true,
|
|
184
194
|
SortableGridList: true,
|
|
@@ -579,28 +589,16 @@ Object.defineProperty(exports, "DialogDirectionsEnum", {
|
|
|
579
589
|
return _dialog().DialogDirectionsEnum;
|
|
580
590
|
}
|
|
581
591
|
});
|
|
582
|
-
Object.defineProperty(exports, "DialogHeaderProps", {
|
|
583
|
-
enumerable: true,
|
|
584
|
-
get: function () {
|
|
585
|
-
return _dialog().DialogHeaderProps;
|
|
586
|
-
}
|
|
587
|
-
});
|
|
588
|
-
Object.defineProperty(exports, "DialogImperativeMethods", {
|
|
589
|
-
enumerable: true,
|
|
590
|
-
get: function () {
|
|
591
|
-
return _dialog().DialogImperativeMethods;
|
|
592
|
-
}
|
|
593
|
-
});
|
|
594
592
|
Object.defineProperty(exports, "DialogProps", {
|
|
595
593
|
enumerable: true,
|
|
596
594
|
get: function () {
|
|
597
595
|
return _dialog().DialogProps;
|
|
598
596
|
}
|
|
599
597
|
});
|
|
600
|
-
Object.defineProperty(exports, "
|
|
598
|
+
Object.defineProperty(exports, "DismissibleAnimationProps", {
|
|
601
599
|
enumerable: true,
|
|
602
600
|
get: function () {
|
|
603
|
-
return
|
|
601
|
+
return _panDismissibleView().DismissibleAnimationProps;
|
|
604
602
|
}
|
|
605
603
|
});
|
|
606
604
|
Object.defineProperty(exports, "Drawer", {
|
|
@@ -966,46 +964,106 @@ Object.defineProperty(exports, "PageControlProps", {
|
|
|
966
964
|
return _pageControl().PageControlProps;
|
|
967
965
|
}
|
|
968
966
|
});
|
|
969
|
-
Object.defineProperty(exports, "
|
|
967
|
+
Object.defineProperty(exports, "PanAmountsProps", {
|
|
970
968
|
enumerable: true,
|
|
971
969
|
get: function () {
|
|
972
|
-
return
|
|
970
|
+
return _panningProvider().PanAmountsProps;
|
|
973
971
|
}
|
|
974
972
|
});
|
|
975
|
-
Object.defineProperty(exports, "
|
|
973
|
+
Object.defineProperty(exports, "PanDirectionsProps", {
|
|
974
|
+
enumerable: true,
|
|
975
|
+
get: function () {
|
|
976
|
+
return _panningProvider().PanDirectionsProps;
|
|
977
|
+
}
|
|
978
|
+
});
|
|
979
|
+
Object.defineProperty(exports, "PanDismissibleView", {
|
|
980
|
+
enumerable: true,
|
|
981
|
+
get: function () {
|
|
982
|
+
return _panDismissibleView().default;
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
Object.defineProperty(exports, "PanDismissibleViewProps", {
|
|
986
|
+
enumerable: true,
|
|
987
|
+
get: function () {
|
|
988
|
+
return _panDismissibleView().PanDismissibleViewProps;
|
|
989
|
+
}
|
|
990
|
+
});
|
|
991
|
+
Object.defineProperty(exports, "PanGestureView", {
|
|
992
|
+
enumerable: true,
|
|
993
|
+
get: function () {
|
|
994
|
+
return _panGestureView().default;
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
Object.defineProperty(exports, "PanGestureViewProps", {
|
|
998
|
+
enumerable: true,
|
|
999
|
+
get: function () {
|
|
1000
|
+
return _panGestureView().PanGestureViewProps;
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
Object.defineProperty(exports, "PanListenerView", {
|
|
1004
|
+
enumerable: true,
|
|
1005
|
+
get: function () {
|
|
1006
|
+
return _panListenerView().default;
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
Object.defineProperty(exports, "PanListenerViewProps", {
|
|
1010
|
+
enumerable: true,
|
|
1011
|
+
get: function () {
|
|
1012
|
+
return _panListenerView().PanListenerViewProps;
|
|
1013
|
+
}
|
|
1014
|
+
});
|
|
1015
|
+
Object.defineProperty(exports, "PanLocationProps", {
|
|
1016
|
+
enumerable: true,
|
|
1017
|
+
get: function () {
|
|
1018
|
+
return _panningProvider().PanLocationProps;
|
|
1019
|
+
}
|
|
1020
|
+
});
|
|
1021
|
+
Object.defineProperty(exports, "PanResponderView", {
|
|
1022
|
+
enumerable: true,
|
|
1023
|
+
get: function () {
|
|
1024
|
+
return _panResponderView().default;
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
Object.defineProperty(exports, "PanResponderViewProps", {
|
|
976
1028
|
enumerable: true,
|
|
977
1029
|
get: function () {
|
|
978
|
-
return
|
|
1030
|
+
return _panResponderView().PanResponderViewProps;
|
|
979
1031
|
}
|
|
980
1032
|
});
|
|
981
|
-
Object.defineProperty(exports, "
|
|
1033
|
+
Object.defineProperty(exports, "PanViewDirections", {
|
|
982
1034
|
enumerable: true,
|
|
983
1035
|
get: function () {
|
|
984
|
-
return
|
|
1036
|
+
return Incubator().PanViewDirections;
|
|
985
1037
|
}
|
|
986
1038
|
});
|
|
987
1039
|
Object.defineProperty(exports, "PanViewDismissThreshold", {
|
|
988
1040
|
enumerable: true,
|
|
989
1041
|
get: function () {
|
|
990
|
-
return
|
|
1042
|
+
return Incubator().PanViewDismissThreshold;
|
|
991
1043
|
}
|
|
992
1044
|
});
|
|
993
1045
|
Object.defineProperty(exports, "PanViewProps", {
|
|
994
1046
|
enumerable: true,
|
|
995
1047
|
get: function () {
|
|
996
|
-
return
|
|
1048
|
+
return Incubator().PanViewProps;
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
Object.defineProperty(exports, "PanningContext", {
|
|
1052
|
+
enumerable: true,
|
|
1053
|
+
get: function () {
|
|
1054
|
+
return _panningContext().default;
|
|
997
1055
|
}
|
|
998
1056
|
});
|
|
999
1057
|
Object.defineProperty(exports, "PanningDirections", {
|
|
1000
1058
|
enumerable: true,
|
|
1001
1059
|
get: function () {
|
|
1002
|
-
return
|
|
1060
|
+
return _panningProvider().PanningDirections;
|
|
1003
1061
|
}
|
|
1004
1062
|
});
|
|
1005
|
-
Object.defineProperty(exports, "
|
|
1063
|
+
Object.defineProperty(exports, "PanningProvider", {
|
|
1006
1064
|
enumerable: true,
|
|
1007
1065
|
get: function () {
|
|
1008
|
-
return
|
|
1066
|
+
return _panningProvider().default;
|
|
1009
1067
|
}
|
|
1010
1068
|
});
|
|
1011
1069
|
Object.defineProperty(exports, "Picker", {
|
|
@@ -1212,6 +1270,12 @@ Object.defineProperty(exports, "SegmentedControlProps", {
|
|
|
1212
1270
|
return _segmentedControl().SegmentedControlProps;
|
|
1213
1271
|
}
|
|
1214
1272
|
});
|
|
1273
|
+
Object.defineProperty(exports, "SharedTransition", {
|
|
1274
|
+
enumerable: true,
|
|
1275
|
+
get: function () {
|
|
1276
|
+
return _sharedTransition().default;
|
|
1277
|
+
}
|
|
1278
|
+
});
|
|
1215
1279
|
Object.defineProperty(exports, "SkeletonView", {
|
|
1216
1280
|
enumerable: true,
|
|
1217
1281
|
get: function () {
|
|
@@ -1596,6 +1660,12 @@ Object.defineProperty(exports, "asBaseComponent", {
|
|
|
1596
1660
|
return _new().asBaseComponent;
|
|
1597
1661
|
}
|
|
1598
1662
|
});
|
|
1663
|
+
Object.defineProperty(exports, "asPanViewConsumer", {
|
|
1664
|
+
enumerable: true,
|
|
1665
|
+
get: function () {
|
|
1666
|
+
return _asPanViewConsumer().default;
|
|
1667
|
+
}
|
|
1668
|
+
});
|
|
1599
1669
|
Object.defineProperty(exports, "forwardRef", {
|
|
1600
1670
|
enumerable: true,
|
|
1601
1671
|
get: function () {
|
|
@@ -2053,16 +2123,58 @@ function _pageControl() {
|
|
|
2053
2123
|
};
|
|
2054
2124
|
return data;
|
|
2055
2125
|
}
|
|
2056
|
-
function
|
|
2057
|
-
const data = _interopRequireWildcard(require("./components/
|
|
2058
|
-
|
|
2126
|
+
function _panDismissibleView() {
|
|
2127
|
+
const data = _interopRequireWildcard(require("./components/panningViews/panDismissibleView"));
|
|
2128
|
+
_panDismissibleView = function () {
|
|
2129
|
+
return data;
|
|
2130
|
+
};
|
|
2131
|
+
return data;
|
|
2132
|
+
}
|
|
2133
|
+
function _panGestureView() {
|
|
2134
|
+
const data = _interopRequireWildcard(require("./components/panningViews/panGestureView"));
|
|
2135
|
+
_panGestureView = function () {
|
|
2136
|
+
return data;
|
|
2137
|
+
};
|
|
2138
|
+
return data;
|
|
2139
|
+
}
|
|
2140
|
+
function _panListenerView() {
|
|
2141
|
+
const data = _interopRequireWildcard(require("./components/panningViews/panListenerView"));
|
|
2142
|
+
_panListenerView = function () {
|
|
2059
2143
|
return data;
|
|
2060
2144
|
};
|
|
2061
2145
|
return data;
|
|
2062
2146
|
}
|
|
2063
|
-
function
|
|
2064
|
-
const data =
|
|
2065
|
-
|
|
2147
|
+
function _panningContext() {
|
|
2148
|
+
const data = _interopRequireDefault(require("./components/panningViews/panningContext"));
|
|
2149
|
+
_panningContext = function () {
|
|
2150
|
+
return data;
|
|
2151
|
+
};
|
|
2152
|
+
return data;
|
|
2153
|
+
}
|
|
2154
|
+
function _panningProvider() {
|
|
2155
|
+
const data = _interopRequireWildcard(require("./components/panningViews/panningProvider"));
|
|
2156
|
+
_panningProvider = function () {
|
|
2157
|
+
return data;
|
|
2158
|
+
};
|
|
2159
|
+
return data;
|
|
2160
|
+
}
|
|
2161
|
+
function _panResponderView() {
|
|
2162
|
+
const data = _interopRequireWildcard(require("./components/panningViews/panResponderView"));
|
|
2163
|
+
_panResponderView = function () {
|
|
2164
|
+
return data;
|
|
2165
|
+
};
|
|
2166
|
+
return data;
|
|
2167
|
+
}
|
|
2168
|
+
function _asPanViewConsumer() {
|
|
2169
|
+
const data = _interopRequireDefault(require("./components/panningViews/asPanViewConsumer"));
|
|
2170
|
+
_asPanViewConsumer = function () {
|
|
2171
|
+
return data;
|
|
2172
|
+
};
|
|
2173
|
+
return data;
|
|
2174
|
+
}
|
|
2175
|
+
function _picker() {
|
|
2176
|
+
const data = _interopRequireWildcard(require("./components/picker"));
|
|
2177
|
+
_picker = function () {
|
|
2066
2178
|
return data;
|
|
2067
2179
|
};
|
|
2068
2180
|
return data;
|
|
@@ -2130,6 +2242,13 @@ function _segmentedControl() {
|
|
|
2130
2242
|
};
|
|
2131
2243
|
return data;
|
|
2132
2244
|
}
|
|
2245
|
+
function _sharedTransition() {
|
|
2246
|
+
const data = _interopRequireDefault(require("./components/sharedTransition"));
|
|
2247
|
+
_sharedTransition = function () {
|
|
2248
|
+
return data;
|
|
2249
|
+
};
|
|
2250
|
+
return data;
|
|
2251
|
+
}
|
|
2133
2252
|
function _skeletonView() {
|
|
2134
2253
|
const data = _interopRequireWildcard(require("./components/skeletonView"));
|
|
2135
2254
|
_skeletonView = function () {
|
package/src/testkit/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { TextDriver } from '../components/text/Text.driver.new';
|
|
|
10
10
|
export { TextFieldDriver } from '../components/textField/TextField.driver.new';
|
|
11
11
|
export { ViewDriver } from '../components/view/View.driver.new';
|
|
12
12
|
export { ModalDriver } from '../components/modal/Modal.driver.new';
|
|
13
|
-
export { DialogDriver } from '../
|
|
13
|
+
export { DialogDriver } from '../incubator/dialog/Dialog.driver.new';
|
|
14
14
|
export { ButtonDriver } from '../components/button/Button.driver.new';
|
|
15
15
|
export { ImageDriver } from '../components/image/Image.driver.new';
|
|
16
16
|
export { SwitchDriver } from '../components/switch/switch.driver';
|
package/src/testkit/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export { TextDriver } from "../components/text/Text.driver.new";
|
|
|
10
10
|
export { TextFieldDriver } from "../components/textField/TextField.driver.new";
|
|
11
11
|
export { ViewDriver } from "../components/view/View.driver.new";
|
|
12
12
|
export { ModalDriver } from "../components/modal/Modal.driver.new";
|
|
13
|
-
export { DialogDriver } from "../
|
|
13
|
+
export { DialogDriver } from "../incubator/dialog/Dialog.driver.new";
|
|
14
14
|
export { ButtonDriver } from "../components/button/Button.driver.new";
|
|
15
15
|
export { ImageDriver } from "../components/image/Image.driver.new";
|
|
16
16
|
export { SwitchDriver } from "../components/switch/switch.driver";
|
|
@@ -9,8 +9,5 @@ export interface ComponentDriverResult {
|
|
|
9
9
|
queryElement: () => ReactTestInstance | undefined;
|
|
10
10
|
exists: () => boolean;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
includeHiddenElements?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare const useComponentDriver: (props: ComponentProps, options?: ComponentDriverOptions) => ComponentDriverResult;
|
|
12
|
+
export declare const useComponentDriver: (props: ComponentProps) => ComponentDriverResult;
|
|
16
13
|
export declare const ComponentDriver: (props: ComponentProps) => ComponentDriverResult;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export const useComponentDriver =
|
|
1
|
+
export const useComponentDriver = props => {
|
|
2
2
|
const {
|
|
3
3
|
renderTree,
|
|
4
4
|
testID
|
|
5
5
|
} = props;
|
|
6
6
|
const getElement = () => {
|
|
7
|
-
const elements = renderTree.queryAllByTestId(testID
|
|
7
|
+
const elements = renderTree.queryAllByTestId(testID);
|
|
8
8
|
if (elements.length > 1) {
|
|
9
9
|
throw new Error(`Found more than one element with testID: ${testID}`);
|
|
10
10
|
}
|
|
@@ -16,7 +16,7 @@ export const useComponentDriver = (props, options) => {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
const queryElement = () => {
|
|
19
|
-
const elements = renderTree.queryAllByTestId(testID
|
|
19
|
+
const elements = renderTree.queryAllByTestId(testID);
|
|
20
20
|
if (elements.length > 1) {
|
|
21
21
|
console.warn(`Found more than one element with testID: ${testID}`);
|
|
22
22
|
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { processColor, StyleSheet, Modal } from 'react-native';
|
|
3
|
-
// Import the Codegen specification for New Architecture
|
|
4
|
-
import HighlighterViewNativeComponent from "../../specs/HighlighterViewNativeComponent";
|
|
5
|
-
const DefaultOverlayColor = 'rgba(0, 0, 0, 0.5)';
|
|
6
|
-
const HighlighterOverlayView = props => {
|
|
7
|
-
const {
|
|
8
|
-
overlayColor,
|
|
9
|
-
borderRadius,
|
|
10
|
-
strokeColor,
|
|
11
|
-
strokeWidth,
|
|
12
|
-
visible,
|
|
13
|
-
onRequestClose,
|
|
14
|
-
highlightFrame,
|
|
15
|
-
style,
|
|
16
|
-
children,
|
|
17
|
-
highlightViewTag,
|
|
18
|
-
highlightViewTagParams,
|
|
19
|
-
minimumRectSize,
|
|
20
|
-
innerPadding
|
|
21
|
-
} = props;
|
|
22
|
-
|
|
23
|
-
// Process colors for New Architecture Codegen component
|
|
24
|
-
const overlayColorToUse = processColor(overlayColor || DefaultOverlayColor);
|
|
25
|
-
const strokeColorToUse = strokeColor ? processColor(strokeColor) : undefined;
|
|
26
|
-
|
|
27
|
-
// Convert highlightViewTagParams to match native Codegen spec
|
|
28
|
-
let nativeHighlightViewTagParams;
|
|
29
|
-
if (highlightViewTagParams) {
|
|
30
|
-
const padding = typeof highlightViewTagParams.padding === 'number' ? highlightViewTagParams.padding : 0;
|
|
31
|
-
nativeHighlightViewTagParams = {
|
|
32
|
-
paddingLeft: padding,
|
|
33
|
-
paddingTop: padding,
|
|
34
|
-
paddingRight: padding,
|
|
35
|
-
paddingBottom: padding,
|
|
36
|
-
offsetX: highlightViewTagParams.offset?.x || 0,
|
|
37
|
-
offsetY: highlightViewTagParams.offset?.y || 0
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
return <Modal visible={!!visible} animationType={'fade'} transparent onRequestClose={() => onRequestClose?.()}>
|
|
41
|
-
<HighlighterViewNativeComponent highlightFrame={highlightFrame} style={[style, {
|
|
42
|
-
...StyleSheet.absoluteFillObject,
|
|
43
|
-
backgroundColor: 'transparent'
|
|
44
|
-
}]} overlayColor={overlayColorToUse} borderRadius={borderRadius} strokeColor={strokeColorToUse} strokeWidth={strokeWidth} highlightViewTag={highlightViewTag} highlightViewTagParams={nativeHighlightViewTagParams} minimumRectSize={minimumRectSize} innerPadding={innerPadding} testID={props.testID} accessible={props.accessible} />
|
|
45
|
-
{children}
|
|
46
|
-
</Modal>;
|
|
47
|
-
};
|
|
48
|
-
HighlighterOverlayView.displayName = 'IGNORE';
|
|
49
|
-
export default HighlighterOverlayView;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Keyboard, View } from 'react-native';
|
|
3
|
-
import KeyboardRegistry from "../KeyboardRegistry";
|
|
4
|
-
import CustomKeyboardViewBase from "./CustomKeyboardViewBase";
|
|
5
|
-
export default class CustomKeyboardView extends CustomKeyboardViewBase {
|
|
6
|
-
static displayName = 'IGNORE';
|
|
7
|
-
async componentDidUpdate(prevProps) {
|
|
8
|
-
const {
|
|
9
|
-
component,
|
|
10
|
-
inputRef,
|
|
11
|
-
shouldFocus,
|
|
12
|
-
onKeyboardDismiss
|
|
13
|
-
} = this.props;
|
|
14
|
-
if (prevProps.component !== component) {
|
|
15
|
-
if (!component) {
|
|
16
|
-
if (shouldFocus) {
|
|
17
|
-
if (inputRef?.current) {
|
|
18
|
-
inputRef.current.focus?.();
|
|
19
|
-
} else {
|
|
20
|
-
inputRef?.focus?.();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
} else {
|
|
24
|
-
Keyboard.dismiss();
|
|
25
|
-
}
|
|
26
|
-
onKeyboardDismiss?.();
|
|
27
|
-
}
|
|
28
|
-
super.componentDidUpdate(prevProps);
|
|
29
|
-
}
|
|
30
|
-
getStyle = () => {
|
|
31
|
-
const {
|
|
32
|
-
keyboardHeight
|
|
33
|
-
} = this.props;
|
|
34
|
-
return {
|
|
35
|
-
height: keyboardHeight
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
render() {
|
|
39
|
-
const {
|
|
40
|
-
component,
|
|
41
|
-
initialProps
|
|
42
|
-
} = this.props;
|
|
43
|
-
const KeyboardComponent = component && KeyboardRegistry.getKeyboard(component);
|
|
44
|
-
if (!KeyboardComponent) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return <View style={this.getStyle()}>
|
|
48
|
-
<KeyboardComponent {...initialProps} />
|
|
49
|
-
</View>;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default class KeyboardUtils {
|
|
2
|
-
static displayName: string;
|
|
3
|
-
private static listeners;
|
|
4
|
-
private static addListener;
|
|
5
|
-
private static removeListener;
|
|
6
|
-
/**
|
|
7
|
-
* Used to dismiss (close) the keyboard.
|
|
8
|
-
*/
|
|
9
|
-
static dismiss: () => void;
|
|
10
|
-
}
|
|
11
|
-
interface KeyboardHeightProps {
|
|
12
|
-
id: string;
|
|
13
|
-
onDismiss: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const useKeyboardHeight: ({ id, onDismiss }: KeyboardHeightProps) => {
|
|
16
|
-
keyboardHeight: number;
|
|
17
|
-
isKeyboardVisible: boolean;
|
|
18
|
-
};
|
|
19
|
-
export interface KeyboardHeightListenerProps {
|
|
20
|
-
id: string;
|
|
21
|
-
onDismiss: () => void;
|
|
22
|
-
onKeyboardHeightChange?: (height: number) => void;
|
|
23
|
-
onKeyboardVisibilityChange?: (isKeyboardVisible: boolean) => void;
|
|
24
|
-
}
|
|
25
|
-
declare const KeyboardHeightListener: ({ id, onDismiss, onKeyboardHeightChange, onKeyboardVisibilityChange }: KeyboardHeightListenerProps) => null;
|
|
26
|
-
export { useKeyboardHeight, KeyboardHeightListener };
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
-
import { Keyboard, Platform } from 'react-native';
|
|
3
|
-
import TextInputKeyboardManager from "../TextInputKeyboardManager";
|
|
4
|
-
const IS_IOS = Platform.OS === 'ios';
|
|
5
|
-
const DEFAULT_KEYBOARD_HEIGHT = IS_IOS ? 216 : 312; // TODO: verify this value for iOS
|
|
6
|
-
|
|
7
|
-
export default class KeyboardUtils {
|
|
8
|
-
static displayName = 'KeyboardUtils';
|
|
9
|
-
static listeners = {};
|
|
10
|
-
static addListener = (id, onDismiss) => {
|
|
11
|
-
if (id && onDismiss && !KeyboardUtils.listeners[id]) {
|
|
12
|
-
KeyboardUtils.listeners[id] = onDismiss;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
static removeListener = id => {
|
|
16
|
-
if (id && KeyboardUtils.listeners[id]) {
|
|
17
|
-
delete KeyboardUtils.listeners[id];
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Used to dismiss (close) the keyboard.
|
|
23
|
-
*/
|
|
24
|
-
static dismiss = () => {
|
|
25
|
-
Keyboard.dismiss();
|
|
26
|
-
TextInputKeyboardManager.dismissKeyboard();
|
|
27
|
-
Object.keys(KeyboardUtils.listeners).forEach(key => {
|
|
28
|
-
KeyboardUtils.listeners[key]();
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const useKeyboardHeight = ({
|
|
33
|
-
id,
|
|
34
|
-
onDismiss
|
|
35
|
-
}) => {
|
|
36
|
-
const [isInitialized, setIsInitialized] = useState(false);
|
|
37
|
-
const [keyboardHeight, setKeyboardHeight] = useState(DEFAULT_KEYBOARD_HEIGHT);
|
|
38
|
-
const [isVisible, setIsVisible] = useState(false);
|
|
39
|
-
const keyboardDidShow = useCallback(e => {
|
|
40
|
-
if (!isInitialized) {
|
|
41
|
-
setIsInitialized(true);
|
|
42
|
-
setKeyboardHeight(e.endCoordinates.height);
|
|
43
|
-
}
|
|
44
|
-
setIsVisible(true);
|
|
45
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
46
|
-
}, []);
|
|
47
|
-
const keyboardDidHide = useCallback(() => {
|
|
48
|
-
setIsVisible(false);
|
|
49
|
-
}, []);
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
const keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', keyboardDidShow);
|
|
52
|
-
const keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', keyboardDidHide);
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
KeyboardUtils.addListener(id, onDismiss);
|
|
55
|
-
return () => {
|
|
56
|
-
keyboardDidShowListener.remove();
|
|
57
|
-
keyboardDidHideListener.remove();
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
KeyboardUtils.removeListener(id);
|
|
60
|
-
};
|
|
61
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
62
|
-
}, []);
|
|
63
|
-
return {
|
|
64
|
-
keyboardHeight,
|
|
65
|
-
isKeyboardVisible: isVisible
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
const KeyboardHeightListener = ({
|
|
69
|
-
id,
|
|
70
|
-
onDismiss,
|
|
71
|
-
onKeyboardHeightChange,
|
|
72
|
-
onKeyboardVisibilityChange
|
|
73
|
-
}) => {
|
|
74
|
-
const {
|
|
75
|
-
keyboardHeight,
|
|
76
|
-
isKeyboardVisible
|
|
77
|
-
} = useKeyboardHeight({
|
|
78
|
-
id,
|
|
79
|
-
onDismiss
|
|
80
|
-
});
|
|
81
|
-
useEffect(() => {
|
|
82
|
-
onKeyboardHeightChange?.(keyboardHeight);
|
|
83
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
84
|
-
}, [keyboardHeight]);
|
|
85
|
-
useEffect(() => {
|
|
86
|
-
onKeyboardVisibilityChange?.(isKeyboardVisible);
|
|
87
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
88
|
-
}, [isKeyboardVisible]);
|
|
89
|
-
return null;
|
|
90
|
-
};
|
|
91
|
-
export { useKeyboardHeight, KeyboardHeightListener };
|