uilib-native 4.2.0 → 4.3.2
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/.vscode/settings.json +22 -0
- package/android/build/.transforms/1036eb23730414372a927c528351bc26/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/{919c4721f192d8eb61942547d8ca6581 → 107c050573bf60c5e0c8269943a793ec}/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/2b717ed37126635dfbaa465702275e27/results.bin +1 -0
- package/android/build/.transforms/2b717ed37126635dfbaa465702275e27/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/416e361a2a5e9e3ad18a35135fbe8f6e/results.bin +1 -0
- package/android/build/.transforms/416e361a2a5e9e3ad18a35135fbe8f6e/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/results.bin +1 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/BuildConfig.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/UiLibPackageList.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/dynamicfont/DynamicFontModule.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/dynamicfont/DynamicFontPackage.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/highlighterview/HighlightFrame.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/highlighterview/HighlightViewTagParams.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/highlighterview/HighlighterView.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager$1.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/highlighterview/HighlighterViewPackage.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/highlighterview/ReactHacks.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/highlighterview/UiUtils.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/AppContextHolder$1.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/AppContextHolder.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$1.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$2.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$3.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$4.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$5.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootView.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewManager.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewShadow.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/KeyboardInputModule.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/KeyboardInputPackage.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/ReactContextHolder.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$1.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$Listener.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$1.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$2.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$Listener.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/utils/PredicateFunc.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$1.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$2.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$1.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$VisibleViewClassMatchPredicate.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/textinput/DefaultKeyListener.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/textinput/KeyListenerProxy.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule$1.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/textinput/ViewUtils.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/utils/LogForwarder$LogType.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/debug/com/wix/reactnativeuilib/utils/LogForwarder.dex +0 -0
- package/android/build/.transforms/628785db81ac3052038232fd7a3a06ac/transformed/desugar_graph.bin +0 -0
- package/android/build/.transforms/7b82d226bcb15cf011edce4eaf78623e/results.bin +1 -0
- package/android/build/.transforms/7b82d226bcb15cf011edce4eaf78623e/transformed/out/AndroidManifest.xml +9 -0
- package/android/build/.transforms/7b82d226bcb15cf011edce4eaf78623e/transformed/out/META-INF/com/android/build/gradle/aar-metadata.properties +4 -0
- package/android/build/.transforms/7b82d226bcb15cf011edce4eaf78623e/transformed/out/R.txt +1962 -0
- package/android/build/.transforms/7b82d226bcb15cf011edce4eaf78623e/transformed/out/jars/classes.jar +0 -0
- package/android/build/.transforms/7b82d226bcb15cf011edce4eaf78623e/transformed/out/jars/libs/R.jar +0 -0
- package/android/build/.transforms/7b82d226bcb15cf011edce4eaf78623e/transformed/out/res/layout/wheel_picker.xml +9 -0
- package/android/build/.transforms/7b82d226bcb15cf011edce4eaf78623e/transformed/out/res/values/values.xml +15 -0
- package/android/build/.transforms/7c61673e4df105aee95a22a8dfbf4af6/results.bin +1 -0
- package/android/build/.transforms/dc6c66051bb0a2aed873a6fee209c3de/results.bin +1 -0
- package/android/build/.transforms/dc6c66051bb0a2aed873a6fee209c3de/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/e497de4b345d0cb0e578424efe3f321c/results.bin +1 -0
- package/android/build/generated/source/buildConfig/release/com/wix/reactnativeuilib/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/release/aapt/AndroidManifest.xml +9 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/release/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_main_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/aar_main_jar/release/classes.jar +0 -0
- package/android/build/intermediates/aar_metadata/release/aar-metadata.properties +4 -0
- package/android/build/intermediates/annotation_processor_list/release/annotationProcessors.json +1 -0
- package/android/build/intermediates/annotations_typedef_file/debug/typedefs.txt +0 -0
- package/android/build/intermediates/annotations_typedef_file/release/typedefs.txt +0 -0
- package/android/build/intermediates/compile_r_class_jar/release/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/release/R.txt +1962 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/layout_wheel_picker.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -2
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -2
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +1 -1
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +1 -1
- package/android/build/intermediates/incremental/mergeReleaseJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeReleaseShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +1 -1
- package/android/build/intermediates/incremental/packageReleaseAssets/merger.xml +2 -0
- package/android/build/intermediates/incremental/release/packageReleaseResources/compile-file-map.properties +2 -0
- package/android/build/intermediates/incremental/release/packageReleaseResources/merged.dir/values/values.xml +15 -0
- package/android/build/intermediates/incremental/release/packageReleaseResources/merger.xml +7 -0
- package/android/build/intermediates/incremental/release-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/UiLibPackageList.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/dynamicfont/DynamicFontModule.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/dynamicfont/DynamicFontPackage.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/highlighterview/HighlightFrame.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/highlighterview/HighlightViewTagParams.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/highlighterview/HighlighterView.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager$1.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/highlighterview/HighlighterViewPackage.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/highlighterview/ReactHacks.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/highlighterview/UiUtils.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/AppContextHolder$1.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/AppContextHolder.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$1.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$2.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$3.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$4.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$5.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootView.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewManager.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewShadow.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/KeyboardInputModule.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/KeyboardInputPackage.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/ReactContextHolder.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$1.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$Listener.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$1.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$2.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$Listener.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/utils/PredicateFunc.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$1.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$2.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$1.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$VisibleViewClassMatchPredicate.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/textinput/DefaultKeyListener.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/textinput/KeyListenerProxy.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule$1.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/textinput/ViewUtils.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/utils/LogForwarder$LogType.class +0 -0
- package/android/build/intermediates/javac/release/classes/com/wix/reactnativeuilib/utils/LogForwarder.class +0 -0
- package/android/build/intermediates/local_aar_for_lint/release/out.aar +0 -0
- package/android/build/intermediates/local_only_symbol_list/release/R-def.txt +11 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +2 -2
- package/android/build/intermediates/manifest_merge_blame_file/release/manifest-merger-blame-release-report.txt +11 -0
- package/android/build/intermediates/merged_java_res/debug/feature-react-native-ui-lib.jar +0 -0
- package/android/build/intermediates/merged_java_res/release/feature-react-native-ui-lib.jar +0 -0
- package/android/build/intermediates/merged_manifest/release/AndroidManifest.xml +9 -0
- package/android/build/intermediates/packaged_manifests/release/output-metadata.json +18 -0
- package/android/build/intermediates/packaged_res/release/layout/wheel_picker.xml +9 -0
- package/android/build/intermediates/packaged_res/release/values/values.xml +15 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/UiLibPackageList.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/dynamicfont/DynamicFontModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/dynamicfont/DynamicFontPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/highlighterview/HighlightFrame.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/highlighterview/HighlightViewTagParams.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/highlighterview/HighlighterView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/highlighterview/HighlighterViewPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/highlighterview/ReactHacks.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/highlighterview/UiUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/AppContextHolder$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/AppContextHolder.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$5.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewShadow.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/KeyboardInputModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/KeyboardInputPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/ReactContextHolder.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$Listener.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$Listener.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/utils/PredicateFunc.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$VisibleViewClassMatchPredicate.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/textinput/DefaultKeyListener.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/textinput/KeyListenerProxy.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/textinput/ViewUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/utils/LogForwarder$LogType.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/wix/reactnativeuilib/utils/LogForwarder.class +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/release/package-aware-r.txt +1455 -0
- package/android/build/outputs/aar/react-native-ui-lib-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +18 -18
- package/android/build/outputs/logs/manifest-merger-release-report.txt +25 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/compileReleaseJavaWithJavac/previous-compilation-data.bin +0 -0
- package/components/DynamicFonts/FontDownloader.d.ts +41 -0
- package/components/DynamicFonts/{FontDownloader.ts → FontDownloader.js} +33 -67
- package/components/DynamicFonts/FontLoader.d.ts +35 -0
- package/components/DynamicFonts/{FontLoader.ts → FontLoader.js} +20 -54
- package/components/DynamicFonts/NoPermissionsAcquirer.d.ts +3 -0
- package/components/DynamicFonts/{NoPermissionsAcquirer.ts → NoPermissionsAcquirer.js} +2 -2
- package/components/DynamicFonts/PermissionsAcquirer.android.d.ts +13 -0
- package/components/DynamicFonts/{PermissionsAcquirer.android.ts → PermissionsAcquirer.android.js} +8 -24
- package/components/DynamicFonts/PermissionsAcquirer.ios.js +2 -0
- package/components/DynamicFonts/{PermissionsAcquirer.ios.ts → PermissionsAcquirer.web.d.ts} +0 -1
- package/components/DynamicFonts/PermissionsAcquirer.web.js +2 -0
- package/components/DynamicFonts/RNFSPackage.d.ts +2 -0
- package/components/DynamicFonts/RNFSPackage.js +5 -0
- package/components/DynamicFonts/index.d.ts +61 -0
- package/components/DynamicFonts/index.js +154 -0
- package/components/HighlighterOverlayView.d.ts +34 -0
- package/components/HighlighterOverlayView.js +40 -0
- package/components/HighlighterOverlayView.web.js +15 -0
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.android.d.ts +7 -0
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.android.js +28 -0
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.ios.d.ts +19 -0
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/{CustomKeyboardView.ios.tsx → CustomKeyboardView.ios.js} +25 -33
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/index.d.ts +4 -0
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/index.js +10 -0
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/{index.web.tsx → index.web.js} +2 -7
- package/components/Keyboard/KeyboardInput/CustomKeyboardViewBase.d.ts +24 -0
- package/components/Keyboard/KeyboardInput/CustomKeyboardViewBase.js +67 -0
- package/components/Keyboard/KeyboardInput/KeyboardAccessoryView.d.ts +74 -0
- package/components/Keyboard/KeyboardInput/{KeyboardAccessoryView.tsx → KeyboardAccessoryView.js} +24 -104
- package/components/Keyboard/KeyboardInput/KeyboardRegistry.d.ts +71 -0
- package/components/Keyboard/KeyboardInput/{KeyboardRegistry.ts → KeyboardRegistry.js} +28 -19
- package/components/Keyboard/KeyboardInput/TextInputKeyboardManager/TextInputKeyboardManager.android.d.ts +4 -0
- package/components/Keyboard/KeyboardInput/TextInputKeyboardManager/{TextInputKeyboardManager.android.ts → TextInputKeyboardManager.android.js} +2 -5
- package/components/Keyboard/KeyboardInput/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.ts +10 -0
- package/components/Keyboard/KeyboardInput/TextInputKeyboardManager/{TextInputKeyboardManager.ios.ts → TextInputKeyboardManager.ios.js} +15 -15
- package/components/Keyboard/KeyboardInput/TextInputKeyboardManager/index.d.ts +4 -0
- package/components/Keyboard/KeyboardInput/TextInputKeyboardManager/index.js +6 -0
- package/components/Keyboard/KeyboardInput/utils/EventEmitterManager.d.ts +10 -0
- package/components/Keyboard/KeyboardInput/utils/{EventEmitterManager.ts → EventEmitterManager.js} +8 -14
- package/components/Keyboard/KeyboardInput/utils/KeyboardUtils.d.ts +11 -0
- package/components/Keyboard/KeyboardInput/utils/{KeyboardUtils.ts → KeyboardUtils.js} +3 -3
- package/components/Keyboard/KeyboardTracking/KeyboardAwareInsetsView.d.ts +16 -0
- package/components/Keyboard/KeyboardTracking/{KeyboardAwareInsetsView.tsx → KeyboardAwareInsetsView.js} +11 -13
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/KeyboardTrackingView.android.d.ts +12 -0
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/KeyboardTrackingView.android.js +17 -0
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/KeyboardTrackingView.ios.d.ts +24 -0
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/{KeyboardTrackingView.ios.tsx → KeyboardTrackingView.ios.js} +5 -14
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/index.d.ts +81 -0
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/index.js +22 -0
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/{index.web.tsx → index.web.js} +2 -6
- package/components/Keyboard/index.d.ts +40 -0
- package/components/Keyboard/index.js +13 -0
- package/components/SafeArea/SafeAreaInsetsManager.d.ts +20 -0
- package/components/SafeArea/{SafeAreaInsetsManager.ts → SafeAreaInsetsManager.js} +23 -26
- package/components/SafeArea/SafeAreaSpacerView.d.ts +10 -0
- package/components/SafeArea/SafeAreaSpacerView.js +14 -0
- package/components/SafeArea/SafeAreaSpacerView.web.d.ts +10 -0
- package/components/SafeArea/SafeAreaSpacerView.web.js +9 -0
- package/components/index.d.ts +6 -0
- package/components/index.js +6 -0
- package/ios/reactnativeuilib.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/reactnativeuilib.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/reactnativeuilib.xcodeproj/project.xcworkspace/xcuserdata/michaelle.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/reactnativeuilib.xcodeproj/xcuserdata/michaelle.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/package.json +1 -1
- package/components/DynamicFonts/RNFSPackage.ts +0 -6
- package/components/DynamicFonts/index.ts +0 -194
- package/components/HighlighterOverlayView.tsx +0 -90
- package/components/HighlighterOverlayView.web.tsx +0 -58
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.android.tsx +0 -31
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/index.tsx +0 -16
- package/components/Keyboard/KeyboardInput/CustomKeyboardViewBase.tsx +0 -83
- package/components/Keyboard/KeyboardInput/TextInputKeyboardManager/index.ts +0 -9
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/KeyboardTrackingView.android.tsx +0 -15
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/index.tsx +0 -96
- package/components/Keyboard/index.ts +0 -15
- package/components/SafeArea/SafeAreaSpacerView.tsx +0 -19
- package/components/SafeArea/SafeAreaSpacerView.web.tsx +0 -14
- package/components/index.ts +0 -16
- /package/android/build/.transforms/{693a7b223f458db1594dd91fc3a98873 → 1036eb23730414372a927c528351bc26}/results.bin +0 -0
- /package/android/build/.transforms/{919c4721f192d8eb61942547d8ca6581 → 107c050573bf60c5e0c8269943a793ec}/results.bin +0 -0
- /package/android/build/.transforms/{693a7b223f458db1594dd91fc3a98873 → 7c61673e4df105aee95a22a8dfbf4af6}/transformed/classes/classes.dex +0 -0
- /package/components/DynamicFonts/{PermissionsAcquirer.web.ts → PermissionsAcquirer.ios.d.ts} +0 -0
package/components/Keyboard/KeyboardInput/{KeyboardAccessoryView.tsx → KeyboardAccessoryView.js}
RENAMED
|
@@ -1,69 +1,17 @@
|
|
|
1
|
-
import React, {Component} from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
NativeEventEmitter,
|
|
7
|
-
DeviceEventEmitter,
|
|
8
|
-
processColor,
|
|
9
|
-
BackHandler,
|
|
10
|
-
LayoutChangeEvent
|
|
11
|
-
} from 'react-native';
|
|
12
|
-
import KeyboardTrackingView, {KeyboardTrackingViewProps} from '../KeyboardTracking/KeyboardTrackingView';
|
|
13
|
-
import CustomKeyboardView from './CustomKeyboardView';
|
|
14
|
-
import KeyboardUtils from './utils/KeyboardUtils';
|
|
15
|
-
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { StyleSheet, Platform, NativeModules, NativeEventEmitter, DeviceEventEmitter, processColor, BackHandler } from 'react-native';
|
|
3
|
+
import KeyboardTrackingView from "../KeyboardTracking/KeyboardTrackingView";
|
|
4
|
+
import CustomKeyboardView from "./CustomKeyboardView";
|
|
5
|
+
import KeyboardUtils from "./utils/KeyboardUtils";
|
|
16
6
|
const IsIOS = Platform.OS === 'ios';
|
|
17
7
|
const IsAndroid = Platform.OS === 'android';
|
|
18
|
-
|
|
19
|
-
type kbTrackingViewProps = Pick<KeyboardTrackingViewProps, 'scrollBehavior' | 'revealKeyboardInteractive' | 'manageScrollView' | 'requiresSameParentToManageScrollView' | 'allowHitsOutsideBounds' | 'addBottomView' | 'bottomViewColor' | 'useSafeArea' | 'usesBottomTabs'>;
|
|
20
|
-
|
|
21
|
-
export type KeyboardAccessoryViewProps = kbTrackingViewProps & {
|
|
22
|
-
/**
|
|
23
|
-
* Content to be rendered above the keyboard
|
|
24
|
-
*/
|
|
25
|
-
renderContent?: () => React.ReactElement;
|
|
26
|
-
/**
|
|
27
|
-
* iOS only.
|
|
28
|
-
* The reference to the actual text input (or the keyboard may not reset when instructed to, etc.).
|
|
29
|
-
* This is required.
|
|
30
|
-
*/
|
|
31
|
-
kbInputRef?: any;
|
|
32
|
-
/**
|
|
33
|
-
* The keyboard ID (the componentID sent to KeyboardRegistry)
|
|
34
|
-
*/
|
|
35
|
-
kbComponent?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The props that will be sent to the KeyboardComponent
|
|
38
|
-
*/
|
|
39
|
-
kbInitialProps?: any;
|
|
40
|
-
/**
|
|
41
|
-
* A callback for when the height is changed
|
|
42
|
-
*/
|
|
43
|
-
onHeightChanged?: (height: number) => void;
|
|
44
|
-
/**
|
|
45
|
-
* Callback that will be called when an item on the keyboard has been pressed.
|
|
46
|
-
*/
|
|
47
|
-
onItemSelected?: (component?: string, args?: any) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Callback that will be called if KeyboardRegistry.requestShowKeyboard is called.
|
|
50
|
-
*/
|
|
51
|
-
onRequestShowKeyboard?: () => void;
|
|
52
|
-
/**
|
|
53
|
-
* Callback that will be called once the keyboard has been closed
|
|
54
|
-
*/
|
|
55
|
-
onKeyboardResigned?: () => void;
|
|
56
|
-
children?: React.ReactChild;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
8
|
/**
|
|
60
9
|
* @description: View that allows replacing the default keyboard with other components
|
|
61
10
|
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/nativeComponentScreens/keyboardAccessory/KeyboardAccessoryViewScreen.js
|
|
62
11
|
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/KeyboardAccessoryView/KeyboardAccessoryView.gif?raw=true
|
|
63
12
|
*/
|
|
64
|
-
class KeyboardAccessoryView extends Component
|
|
13
|
+
class KeyboardAccessoryView extends Component {
|
|
65
14
|
static scrollBehaviors = KeyboardTrackingView.scrollBehaviors;
|
|
66
|
-
|
|
67
15
|
static defaultProps = {
|
|
68
16
|
revealKeyboardInteractive: false,
|
|
69
17
|
manageScrollView: true,
|
|
@@ -74,22 +22,17 @@ class KeyboardAccessoryView extends Component<KeyboardAccessoryViewProps> {
|
|
|
74
22
|
};
|
|
75
23
|
|
|
76
24
|
// TODO: fix
|
|
77
|
-
customInputControllerEventsSubscriber: any;
|
|
78
|
-
trackingViewRef: any;
|
|
79
25
|
|
|
80
|
-
constructor(props
|
|
26
|
+
constructor(props) {
|
|
81
27
|
super(props);
|
|
82
|
-
|
|
83
28
|
this.onContainerComponentHeightChanged = this.onContainerComponentHeightChanged.bind(this);
|
|
84
29
|
this.processInitialProps = this.processInitialProps.bind(this);
|
|
85
30
|
this.registerForKeyboardResignedEvent = this.registerForKeyboardResignedEvent.bind(this);
|
|
86
31
|
this.registerAndroidBackHandler = this.registerAndroidBackHandler.bind(this);
|
|
87
32
|
this.onAndroidBackPressed = this.onAndroidBackPressed.bind(this);
|
|
88
|
-
|
|
89
33
|
this.registerForKeyboardResignedEvent();
|
|
90
34
|
this.registerAndroidBackHandler();
|
|
91
35
|
}
|
|
92
|
-
|
|
93
36
|
componentWillUnmount() {
|
|
94
37
|
if (this.customInputControllerEventsSubscriber) {
|
|
95
38
|
this.customInputControllerEventsSubscriber.remove();
|
|
@@ -98,34 +41,34 @@ class KeyboardAccessoryView extends Component<KeyboardAccessoryViewProps> {
|
|
|
98
41
|
BackHandler.removeEventListener('hardwareBackPress', this.onAndroidBackPressed);
|
|
99
42
|
}
|
|
100
43
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
44
|
+
onContainerComponentHeightChanged(event) {
|
|
45
|
+
const {
|
|
46
|
+
onHeightChanged
|
|
47
|
+
} = this.props;
|
|
105
48
|
if (onHeightChanged) {
|
|
106
49
|
onHeightChanged(event.nativeEvent.layout.height);
|
|
107
50
|
}
|
|
108
51
|
}
|
|
109
|
-
|
|
110
52
|
onAndroidBackPressed() {
|
|
111
|
-
const {
|
|
112
|
-
|
|
53
|
+
const {
|
|
54
|
+
kbComponent
|
|
55
|
+
} = this.props;
|
|
113
56
|
if (kbComponent) {
|
|
114
57
|
KeyboardUtils.dismiss();
|
|
115
58
|
return true;
|
|
116
59
|
}
|
|
117
60
|
return false;
|
|
118
61
|
}
|
|
119
|
-
|
|
120
62
|
async getNativeProps() {
|
|
121
63
|
if (this.trackingViewRef) {
|
|
122
64
|
return await this.trackingViewRef.getNativeProps();
|
|
123
65
|
}
|
|
124
66
|
return {};
|
|
125
67
|
}
|
|
126
|
-
|
|
127
68
|
registerForKeyboardResignedEvent() {
|
|
128
|
-
const {
|
|
69
|
+
const {
|
|
70
|
+
onKeyboardResigned
|
|
71
|
+
} = this.props;
|
|
129
72
|
let eventEmitter = null;
|
|
130
73
|
if (IsIOS) {
|
|
131
74
|
if (NativeModules.CustomInputControllerTemp) {
|
|
@@ -134,7 +77,6 @@ class KeyboardAccessoryView extends Component<KeyboardAccessoryViewProps> {
|
|
|
134
77
|
} else {
|
|
135
78
|
eventEmitter = DeviceEventEmitter;
|
|
136
79
|
}
|
|
137
|
-
|
|
138
80
|
if (eventEmitter !== null) {
|
|
139
81
|
this.customInputControllerEventsSubscriber = eventEmitter.addListener('kbdResigned', () => {
|
|
140
82
|
if (onKeyboardResigned) {
|
|
@@ -143,31 +85,27 @@ class KeyboardAccessoryView extends Component<KeyboardAccessoryViewProps> {
|
|
|
143
85
|
});
|
|
144
86
|
}
|
|
145
87
|
}
|
|
146
|
-
|
|
147
88
|
registerAndroidBackHandler() {
|
|
148
89
|
if (IsAndroid) {
|
|
149
90
|
BackHandler.addEventListener('hardwareBackPress', this.onAndroidBackPressed);
|
|
150
91
|
}
|
|
151
92
|
}
|
|
152
|
-
|
|
153
93
|
processInitialProps() {
|
|
154
|
-
const {
|
|
155
|
-
|
|
94
|
+
const {
|
|
95
|
+
kbInitialProps
|
|
96
|
+
} = this.props;
|
|
156
97
|
if (IsIOS && kbInitialProps && kbInitialProps.backgroundColor) {
|
|
157
98
|
const processedProps = Object.assign({}, kbInitialProps);
|
|
158
99
|
processedProps.backgroundColor = processColor(processedProps.backgroundColor);
|
|
159
100
|
return processedProps;
|
|
160
101
|
}
|
|
161
|
-
|
|
162
102
|
return kbInitialProps;
|
|
163
103
|
}
|
|
164
|
-
|
|
165
104
|
scrollToStart() {
|
|
166
105
|
if (this.trackingViewRef) {
|
|
167
106
|
this.trackingViewRef.scrollToStart();
|
|
168
107
|
}
|
|
169
108
|
}
|
|
170
|
-
|
|
171
109
|
render() {
|
|
172
110
|
const {
|
|
173
111
|
renderContent,
|
|
@@ -178,29 +116,12 @@ class KeyboardAccessoryView extends Component<KeyboardAccessoryViewProps> {
|
|
|
178
116
|
scrollBehavior,
|
|
179
117
|
...others
|
|
180
118
|
} = this.props;
|
|
181
|
-
|
|
182
|
-
return (
|
|
183
|
-
<KeyboardTrackingView
|
|
184
|
-
{...others}
|
|
185
|
-
scrollBehavior={scrollBehavior}
|
|
186
|
-
ref={(r: any) => (this.trackingViewRef = r)}
|
|
187
|
-
style={styles.trackingToolbarContainer}
|
|
188
|
-
onLayout={this.onContainerComponentHeightChanged}
|
|
189
|
-
>
|
|
119
|
+
return <KeyboardTrackingView {...others} scrollBehavior={scrollBehavior} ref={r => this.trackingViewRef = r} style={styles.trackingToolbarContainer} onLayout={this.onContainerComponentHeightChanged}>
|
|
190
120
|
<>{renderContent?.()}</>
|
|
191
|
-
<CustomKeyboardView
|
|
192
|
-
|
|
193
|
-
component={kbComponent}
|
|
194
|
-
initialProps={this.processInitialProps()}
|
|
195
|
-
onItemSelected={onItemSelected}
|
|
196
|
-
onRequestShowKeyboard={onRequestShowKeyboard}
|
|
197
|
-
useSafeArea={others.useSafeArea}
|
|
198
|
-
/>
|
|
199
|
-
</KeyboardTrackingView>
|
|
200
|
-
);
|
|
121
|
+
<CustomKeyboardView inputRef={kbInputRef} component={kbComponent} initialProps={this.processInitialProps()} onItemSelected={onItemSelected} onRequestShowKeyboard={onRequestShowKeyboard} useSafeArea={others.useSafeArea} />
|
|
122
|
+
</KeyboardTrackingView>;
|
|
201
123
|
}
|
|
202
124
|
}
|
|
203
|
-
|
|
204
125
|
const styles = StyleSheet.create({
|
|
205
126
|
trackingToolbarContainer: {
|
|
206
127
|
...Platform.select({
|
|
@@ -211,5 +132,4 @@ const styles = StyleSheet.create({
|
|
|
211
132
|
})
|
|
212
133
|
}
|
|
213
134
|
});
|
|
214
|
-
|
|
215
|
-
export default KeyboardAccessoryView;
|
|
135
|
+
export default KeyboardAccessoryView;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import EventEmitterManager from './utils/EventEmitterManager';
|
|
2
|
+
/**
|
|
3
|
+
* @description: used for registering keyboards and performing certain actions on the keyboards.
|
|
4
|
+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/nativeComponentScreens/keyboardAccessory/demoKeyboards.js
|
|
5
|
+
*/
|
|
6
|
+
export default class KeyboardRegistry {
|
|
7
|
+
static displayName: string;
|
|
8
|
+
static registeredKeyboards: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
static eventEmitter: EventEmitterManager;
|
|
12
|
+
/**
|
|
13
|
+
* Register a new keyboard.
|
|
14
|
+
* componentID (string) - the ID of the keyboard.
|
|
15
|
+
* generator (function) - a function for the creation of the keyboard.
|
|
16
|
+
* params (object) - to be returned when using other methods (i.e. getKeyboards and getAllKeyboards).
|
|
17
|
+
*/
|
|
18
|
+
static registerKeyboard: (componentID: string, generator: Function, params?: {}) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Get a specific keyboard
|
|
21
|
+
* componentID (string) - the ID of the keyboard.
|
|
22
|
+
*/
|
|
23
|
+
static getKeyboard: (componentID: string) => any;
|
|
24
|
+
/**
|
|
25
|
+
* Get keyboards by IDs
|
|
26
|
+
* componentIDs (string[]) - the ID of the keyboard.
|
|
27
|
+
*/
|
|
28
|
+
static getKeyboards: (componentIDs?: never[]) => any[];
|
|
29
|
+
/**
|
|
30
|
+
* Get all keyboards
|
|
31
|
+
*/
|
|
32
|
+
static getAllKeyboards: () => any[];
|
|
33
|
+
/**
|
|
34
|
+
* Add a listener for a callback.
|
|
35
|
+
* globalID (string) - ID that includes the componentID and the event name
|
|
36
|
+
* (i.e. if componentID='kb1' globalID='kb1.onItemSelected')
|
|
37
|
+
* callback (function) - the callback to be called when the said event happens
|
|
38
|
+
*/
|
|
39
|
+
static addListener: (globalID: string, callback: Function) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Notify that an event has occurred.
|
|
42
|
+
* globalID (string) - ID that includes the componentID and the event name
|
|
43
|
+
* (i.e. if componentID='kb1' globalID='kb1.onItemSelected')
|
|
44
|
+
* args (object) - data to be sent to the listener.
|
|
45
|
+
*/
|
|
46
|
+
static notifyListeners: (globalID: string, args: any) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Remove a listener for a callback.
|
|
49
|
+
* globalID (string) - ID that includes the componentID and the event name
|
|
50
|
+
* (i.e. if componentID='kb1' globalID='kb1.onItemSelected')
|
|
51
|
+
*/
|
|
52
|
+
static removeListeners: (globalID: string) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Default event to be used for when an item on the keyboard has been pressed.
|
|
55
|
+
* componentID (string) - the ID of the keyboard.
|
|
56
|
+
* args (object) - data to be sent to the listener.
|
|
57
|
+
*/
|
|
58
|
+
static onItemSelected: (componentID: string, args: any) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Request to show the keyboard
|
|
61
|
+
* componentID (string) - the ID of the keyboard.
|
|
62
|
+
*/
|
|
63
|
+
static requestShowKeyboard: (componentID: string) => void;
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated
|
|
66
|
+
* iOS only (experimental)
|
|
67
|
+
* Call to make the keyboard full screen
|
|
68
|
+
* componentID (string) - the ID of the keyboard.
|
|
69
|
+
*/
|
|
70
|
+
static toggleExpandedKeyboard: (componentID: string) => void;
|
|
71
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import _intersection from "lodash/intersection";
|
|
2
|
+
import _isFunction from "lodash/isFunction";
|
|
3
|
+
import { AppRegistry } from 'react-native';
|
|
4
|
+
import EventEmitterManager from "./utils/EventEmitterManager";
|
|
4
5
|
|
|
5
6
|
/*
|
|
6
7
|
* Tech debt: how to deal with multiple registries in the app?
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
|
-
const getKeyboardsWithIDs =
|
|
10
|
+
const getKeyboardsWithIDs = keyboardIDs => {
|
|
10
11
|
return keyboardIDs.map(keyboardId => {
|
|
11
12
|
return {
|
|
12
13
|
id: keyboardId,
|
|
@@ -21,7 +22,7 @@ const getKeyboardsWithIDs = (keyboardIDs: string[]) => {
|
|
|
21
22
|
*/
|
|
22
23
|
export default class KeyboardRegistry {
|
|
23
24
|
static displayName = 'KeyboardRegistry';
|
|
24
|
-
static registeredKeyboards
|
|
25
|
+
static registeredKeyboards = {};
|
|
25
26
|
static eventEmitter = new EventEmitterManager();
|
|
26
27
|
|
|
27
28
|
/**
|
|
@@ -30,12 +31,16 @@ export default class KeyboardRegistry {
|
|
|
30
31
|
* generator (function) - a function for the creation of the keyboard.
|
|
31
32
|
* params (object) - to be returned when using other methods (i.e. getKeyboards and getAllKeyboards).
|
|
32
33
|
*/
|
|
33
|
-
static registerKeyboard = (componentID
|
|
34
|
-
if (!
|
|
34
|
+
static registerKeyboard = (componentID, generator, params = {}) => {
|
|
35
|
+
if (!_isFunction(generator)) {
|
|
35
36
|
console.error(`KeyboardRegistry.registerKeyboard: ${componentID} you must register a generator function`);
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
|
-
KeyboardRegistry.registeredKeyboards[componentID] = {
|
|
39
|
+
KeyboardRegistry.registeredKeyboards[componentID] = {
|
|
40
|
+
generator,
|
|
41
|
+
params,
|
|
42
|
+
componentID
|
|
43
|
+
};
|
|
39
44
|
AppRegistry.registerComponent(componentID, generator);
|
|
40
45
|
};
|
|
41
46
|
|
|
@@ -43,7 +48,7 @@ export default class KeyboardRegistry {
|
|
|
43
48
|
* Get a specific keyboard
|
|
44
49
|
* componentID (string) - the ID of the keyboard.
|
|
45
50
|
*/
|
|
46
|
-
static getKeyboard =
|
|
51
|
+
static getKeyboard = componentID => {
|
|
47
52
|
const res = KeyboardRegistry.registeredKeyboards[componentID];
|
|
48
53
|
if (!res || !res.generator) {
|
|
49
54
|
console.error(`KeyboardRegistry.getKeyboard: ${componentID} used but not yet registered`);
|
|
@@ -57,7 +62,7 @@ export default class KeyboardRegistry {
|
|
|
57
62
|
* componentIDs (string[]) - the ID of the keyboard.
|
|
58
63
|
*/
|
|
59
64
|
static getKeyboards = (componentIDs = []) => {
|
|
60
|
-
const validKeyboardIDs =
|
|
65
|
+
const validKeyboardIDs = _intersection(componentIDs, Object.keys(KeyboardRegistry.registeredKeyboards));
|
|
61
66
|
return getKeyboardsWithIDs(validKeyboardIDs);
|
|
62
67
|
};
|
|
63
68
|
|
|
@@ -74,7 +79,7 @@ export default class KeyboardRegistry {
|
|
|
74
79
|
* (i.e. if componentID='kb1' globalID='kb1.onItemSelected')
|
|
75
80
|
* callback (function) - the callback to be called when the said event happens
|
|
76
81
|
*/
|
|
77
|
-
static addListener = (globalID
|
|
82
|
+
static addListener = (globalID, callback) => {
|
|
78
83
|
KeyboardRegistry.eventEmitter.listenOn(globalID, callback);
|
|
79
84
|
};
|
|
80
85
|
|
|
@@ -84,7 +89,7 @@ export default class KeyboardRegistry {
|
|
|
84
89
|
* (i.e. if componentID='kb1' globalID='kb1.onItemSelected')
|
|
85
90
|
* args (object) - data to be sent to the listener.
|
|
86
91
|
*/
|
|
87
|
-
static notifyListeners = (globalID
|
|
92
|
+
static notifyListeners = (globalID, args) => {
|
|
88
93
|
KeyboardRegistry.eventEmitter.emitEvent(globalID, args);
|
|
89
94
|
};
|
|
90
95
|
|
|
@@ -93,7 +98,7 @@ export default class KeyboardRegistry {
|
|
|
93
98
|
* globalID (string) - ID that includes the componentID and the event name
|
|
94
99
|
* (i.e. if componentID='kb1' globalID='kb1.onItemSelected')
|
|
95
100
|
*/
|
|
96
|
-
static removeListeners =
|
|
101
|
+
static removeListeners = globalID => {
|
|
97
102
|
KeyboardRegistry.eventEmitter.removeListeners(globalID);
|
|
98
103
|
};
|
|
99
104
|
|
|
@@ -102,7 +107,7 @@ export default class KeyboardRegistry {
|
|
|
102
107
|
* componentID (string) - the ID of the keyboard.
|
|
103
108
|
* args (object) - data to be sent to the listener.
|
|
104
109
|
*/
|
|
105
|
-
static onItemSelected = (componentID
|
|
110
|
+
static onItemSelected = (componentID, args) => {
|
|
106
111
|
KeyboardRegistry.notifyListeners(`${componentID}.onItemSelected`, args);
|
|
107
112
|
};
|
|
108
113
|
|
|
@@ -110,8 +115,10 @@ export default class KeyboardRegistry {
|
|
|
110
115
|
* Request to show the keyboard
|
|
111
116
|
* componentID (string) - the ID of the keyboard.
|
|
112
117
|
*/
|
|
113
|
-
static requestShowKeyboard =
|
|
114
|
-
KeyboardRegistry.notifyListeners('onRequestShowKeyboard', {
|
|
118
|
+
static requestShowKeyboard = componentID => {
|
|
119
|
+
KeyboardRegistry.notifyListeners('onRequestShowKeyboard', {
|
|
120
|
+
keyboardId: componentID
|
|
121
|
+
});
|
|
115
122
|
};
|
|
116
123
|
|
|
117
124
|
/**
|
|
@@ -120,7 +127,9 @@ export default class KeyboardRegistry {
|
|
|
120
127
|
* Call to make the keyboard full screen
|
|
121
128
|
* componentID (string) - the ID of the keyboard.
|
|
122
129
|
*/
|
|
123
|
-
static toggleExpandedKeyboard =
|
|
124
|
-
KeyboardRegistry.notifyListeners('onToggleExpandedKeyboard', {
|
|
130
|
+
static toggleExpandedKeyboard = componentID => {
|
|
131
|
+
KeyboardRegistry.notifyListeners('onToggleExpandedKeyboard', {
|
|
132
|
+
keyboardId: componentID
|
|
133
|
+
});
|
|
125
134
|
};
|
|
126
|
-
}
|
|
135
|
+
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {NativeModules} from 'react-native';
|
|
2
|
-
|
|
1
|
+
import { NativeModules } from 'react-native';
|
|
3
2
|
const CustomKeyboardInput = NativeModules.CustomKeyboardInputTemp;
|
|
4
|
-
|
|
5
3
|
export default class TextInputKeyboardManager {
|
|
6
4
|
static reset = () => CustomKeyboardInput.reset();
|
|
7
|
-
|
|
8
5
|
static dismissKeyboard = async () => {
|
|
9
6
|
CustomKeyboardInput.clearFocusedView();
|
|
10
7
|
await TextInputKeyboardManager.reset();
|
|
11
8
|
};
|
|
12
|
-
}
|
|
9
|
+
}
|
package/components/Keyboard/KeyboardInput/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default class TextInputKeyboardManager {
|
|
2
|
+
static setInputComponent: (textInputRef: any, { component, initialProps, useSafeArea }: {
|
|
3
|
+
component?: string | undefined;
|
|
4
|
+
initialProps: any;
|
|
5
|
+
useSafeArea?: boolean | undefined;
|
|
6
|
+
}) => void;
|
|
7
|
+
static removeInputComponent: (textInputRef: any) => void;
|
|
8
|
+
static dismissKeyboard: () => void;
|
|
9
|
+
static toggleExpandKeyboard: (textInputRef: any, expand: boolean, performLayoutAnimation?: boolean) => void;
|
|
10
|
+
}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import ReactNative, {NativeModules, LayoutAnimation} from 'react-native';
|
|
2
|
-
|
|
1
|
+
import ReactNative, { NativeModules, LayoutAnimation } from 'react-native';
|
|
3
2
|
const CustomInputControllerTemp = NativeModules.CustomInputControllerTemp;
|
|
4
|
-
|
|
5
3
|
export default class TextInputKeyboardManager {
|
|
6
|
-
static setInputComponent = (textInputRef
|
|
7
|
-
|
|
4
|
+
static setInputComponent = (textInputRef, {
|
|
5
|
+
component,
|
|
6
|
+
initialProps,
|
|
7
|
+
useSafeArea
|
|
8
|
+
}) => {
|
|
8
9
|
if (!textInputRef || !CustomInputControllerTemp) {
|
|
9
10
|
return;
|
|
10
11
|
}
|
|
11
12
|
const reactTag = findNodeHandle(textInputRef);
|
|
12
13
|
if (reactTag) {
|
|
13
|
-
CustomInputControllerTemp.presentCustomInputComponent(reactTag, {
|
|
14
|
+
CustomInputControllerTemp.presentCustomInputComponent(reactTag, {
|
|
15
|
+
component,
|
|
16
|
+
initialProps,
|
|
17
|
+
useSafeArea
|
|
18
|
+
});
|
|
14
19
|
}
|
|
15
20
|
};
|
|
16
|
-
|
|
17
|
-
static removeInputComponent = (textInputRef: any) => {
|
|
21
|
+
static removeInputComponent = textInputRef => {
|
|
18
22
|
if (!textInputRef || !CustomInputControllerTemp) {
|
|
19
23
|
return;
|
|
20
24
|
}
|
|
@@ -23,12 +27,10 @@ export default class TextInputKeyboardManager {
|
|
|
23
27
|
CustomInputControllerTemp.resetInput(reactTag);
|
|
24
28
|
}
|
|
25
29
|
};
|
|
26
|
-
|
|
27
30
|
static dismissKeyboard = () => {
|
|
28
31
|
CustomInputControllerTemp.dismissKeyboard();
|
|
29
32
|
};
|
|
30
|
-
|
|
31
|
-
static toggleExpandKeyboard = (textInputRef: any, expand: boolean, performLayoutAnimation = false) => {
|
|
33
|
+
static toggleExpandKeyboard = (textInputRef, expand, performLayoutAnimation = false) => {
|
|
32
34
|
if (textInputRef) {
|
|
33
35
|
if (performLayoutAnimation) {
|
|
34
36
|
LayoutAnimation.configureNext(springAnimation);
|
|
@@ -42,11 +44,9 @@ export default class TextInputKeyboardManager {
|
|
|
42
44
|
}
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
|
-
|
|
46
|
-
function findNodeHandle(ref: any) {
|
|
47
|
+
function findNodeHandle(ref) {
|
|
47
48
|
return ReactNative.findNodeHandle(ref.current || ref);
|
|
48
49
|
}
|
|
49
|
-
|
|
50
50
|
const springAnimation = {
|
|
51
51
|
duration: 400,
|
|
52
52
|
create: {
|
|
@@ -61,4 +61,4 @@ const springAnimation = {
|
|
|
61
61
|
type: LayoutAnimation.Types.linear,
|
|
62
62
|
property: LayoutAnimation.Properties.opacity
|
|
63
63
|
}
|
|
64
|
-
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as TextInputKeyboardManagerIOS } from './TextInputKeyboardManager.ios';
|
|
2
|
+
import { default as TextInputKeyboardManagerAndroid } from './TextInputKeyboardManager.android';
|
|
3
|
+
declare const TextInputKeyboardManager: typeof TextInputKeyboardManagerIOS | typeof TextInputKeyboardManagerAndroid;
|
|
4
|
+
export default TextInputKeyboardManager;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
import { default as TextInputKeyboardManagerIOS } from "./TextInputKeyboardManager.ios";
|
|
3
|
+
import { default as TextInputKeyboardManagerAndroid } from "./TextInputKeyboardManager.android";
|
|
4
|
+
const IsAndroid = Platform.OS === 'android';
|
|
5
|
+
const TextInputKeyboardManager = IsAndroid ? TextInputKeyboardManagerAndroid : TextInputKeyboardManagerIOS;
|
|
6
|
+
export default TextInputKeyboardManager;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default class EventEmitterManager {
|
|
2
|
+
handlerCallbacks: {
|
|
3
|
+
[key: string]: Function[];
|
|
4
|
+
};
|
|
5
|
+
constructor();
|
|
6
|
+
listenOn(eventName: string, handlerCallback: Function): void;
|
|
7
|
+
emitEvent(eventName: string, params?: {}): void;
|
|
8
|
+
removeListeners(eventName: string): void;
|
|
9
|
+
removeListener(eventName: string, listener: Function): void;
|
|
10
|
+
}
|
package/components/Keyboard/KeyboardInput/utils/{EventEmitterManager.ts → EventEmitterManager.js}
RENAMED
|
@@ -1,33 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import _indexOf from "lodash/indexOf";
|
|
3
2
|
export default class EventEmitterManager {
|
|
4
|
-
handlerCallbacks
|
|
3
|
+
handlerCallbacks = {};
|
|
5
4
|
constructor() {
|
|
6
5
|
this.handlerCallbacks = {};
|
|
7
6
|
}
|
|
8
|
-
|
|
9
|
-
listenOn(eventName: string, handlerCallback: Function) {
|
|
7
|
+
listenOn(eventName, handlerCallback) {
|
|
10
8
|
if (!this.handlerCallbacks[eventName]) {
|
|
11
9
|
this.handlerCallbacks[eventName] = [];
|
|
12
10
|
}
|
|
13
|
-
if (
|
|
11
|
+
if (_indexOf(this.handlerCallbacks[eventName], handlerCallback) === -1) {
|
|
14
12
|
this.handlerCallbacks[eventName].push(handlerCallback);
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
|
-
|
|
18
|
-
emitEvent(eventName: string, params = {}) {
|
|
15
|
+
emitEvent(eventName, params = {}) {
|
|
19
16
|
if (this.handlerCallbacks[eventName]) {
|
|
20
17
|
this.handlerCallbacks[eventName].forEach(callback => callback(params));
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
|
|
24
|
-
removeListeners(eventName: string) {
|
|
20
|
+
removeListeners(eventName) {
|
|
25
21
|
delete this.handlerCallbacks[eventName];
|
|
26
22
|
}
|
|
27
|
-
|
|
28
|
-
removeListener(eventName: string, listener: Function) {
|
|
23
|
+
removeListener(eventName, listener) {
|
|
29
24
|
const handlers = this.handlerCallbacks[eventName];
|
|
30
|
-
|
|
31
25
|
if (handlers) {
|
|
32
26
|
handlers.forEach((handler, index) => {
|
|
33
27
|
if (handler === listener) {
|
|
@@ -36,4 +30,4 @@ export default class EventEmitterManager {
|
|
|
36
30
|
});
|
|
37
31
|
}
|
|
38
32
|
}
|
|
39
|
-
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: util for managing the keyboard.
|
|
3
|
+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/nativeComponentScreens/keyboardInput/KeyboardInputViewScreen.js
|
|
4
|
+
*/
|
|
5
|
+
export default class KeyboardUtils {
|
|
6
|
+
static displayName: string;
|
|
7
|
+
/**
|
|
8
|
+
* Used to dismiss (close) the keyboard.
|
|
9
|
+
*/
|
|
10
|
+
static dismiss: () => void;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {Keyboard} from 'react-native';
|
|
2
|
-
import TextInputKeyboardManager from
|
|
1
|
+
import { Keyboard } from 'react-native';
|
|
2
|
+
import TextInputKeyboardManager from "../TextInputKeyboardManager";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @description: util for managing the keyboard.
|
|
@@ -14,4 +14,4 @@ export default class KeyboardUtils {
|
|
|
14
14
|
Keyboard.dismiss();
|
|
15
15
|
TextInputKeyboardManager.dismissKeyboard();
|
|
16
16
|
};
|
|
17
|
-
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { KeyboardTrackingViewProps } from './KeyboardTrackingView';
|
|
3
|
+
type Props = KeyboardTrackingViewProps & {
|
|
4
|
+
offset?: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @description: Used to add an inset when a keyboard is used and might hide part of the screen.
|
|
8
|
+
*
|
|
9
|
+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/TextFieldScreen/InputsScreen.js
|
|
10
|
+
* @notes: This view is useful only for iOS.
|
|
11
|
+
*/
|
|
12
|
+
declare const KeyboardAwareInsetsView: {
|
|
13
|
+
(props: Props): React.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export default KeyboardAwareInsetsView;
|