uilib-native 3.0.0 → 3.0.5
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/android/build/.transforms/{6a4a003a5436f1cfa6c642f89a88b8f1.bin → 7b85a4cb719e06b1cadba5128a161508/results.bin} +0 -0
- package/android/build/.transforms/7b85a4cb719e06b1cadba5128a161508/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/faa2afe0bc7898c632042480c288ecc2/results.bin +1 -0
- package/android/build/.transforms/faa2afe0bc7898c632042480c288ecc2/transformed/classes/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/wix/reactnativeuilib/BuildConfig.java +0 -8
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +3 -5
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +16 -0
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +2 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +1865 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/layout_wheel_picker.xml.flat +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/packageDebugAssets/merger.xml +1 -1
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +2 -2
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +2 -2
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/UiLibPackageList.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/highlighterview/HighlightFrame.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/highlighterview/HighlightViewTagParams.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/highlighterview/HighlighterView.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/highlighterview/HighlighterViewPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/highlighterview/ReactHacks.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/highlighterview/UiUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/AppContextHolder$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/AppContextHolder.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$4.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$5.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootView.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewManager.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewShadow.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/KeyboardInputModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/KeyboardInputPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/ReactContextHolder.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$Listener.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$Listener.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/utils/PredicateFunc.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$VisibleViewClassMatchPredicate.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/textinput/DefaultKeyListener.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/textinput/KeyListenerProxy.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/textinput/ViewUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/utils/LogForwarder$LogType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/utils/LogForwarder.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/wheelpicker/WheelPicker$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/wheelpicker/WheelPicker.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/wheelpicker/WheelPickerManager.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/wix/reactnativeuilib/wheelpicker/WheelPickerPackage.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/{parseDebugLibraryResources/R-def.txt → R-def.txt} +0 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +9 -11
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +9 -0
- package/android/build/intermediates/{transforms/stripDebugSymbol/debug/__content__.json → navigation_json/debug/navigation.json} +0 -0
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +16 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/{res/symbol-table-with-package → symbol_list_with_package_name}/debug/package-aware-r.txt +66 -8
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +18 -30
- package/android/build/tmp/compileDebugJavaWithJavac/source-classes-mapping.txt +83 -0
- package/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout.java +43 -12
- package/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootView.java +12 -0
- package/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/KeyboardInputModule.java +1 -1
- package/components/{HighlighterOverlayView.js → HighlighterOverlayView.tsx} +40 -46
- package/components/Keyboard/KeyboardInput/{CustomKeyboardView.android.js → CustomKeyboardView/CustomKeyboardView.android.tsx} +9 -14
- package/components/Keyboard/KeyboardInput/{CustomKeyboardView.ios.js → CustomKeyboardView/CustomKeyboardView.ios.tsx} +20 -21
- package/components/Keyboard/KeyboardInput/CustomKeyboardView/index.tsx +16 -0
- package/components/Keyboard/KeyboardInput/{CustomKeyboardViewBase.js → CustomKeyboardViewBase.tsx} +26 -20
- package/components/Keyboard/KeyboardInput/{KeyboardAccessoryView.js → KeyboardAccessoryView.tsx} +110 -99
- package/components/Keyboard/KeyboardInput/{KeyboardRegistry.js → KeyboardRegistry.ts} +10 -10
- package/components/Keyboard/KeyboardInput/{TextInputKeyboardManager.android.js → TextInputKeyboardManager/TextInputKeyboardManager.android.ts} +1 -1
- package/components/Keyboard/KeyboardInput/{TextInputKeyboardManager.ios.js → TextInputKeyboardManager/TextInputKeyboardManager.ios.ts} +5 -4
- package/components/Keyboard/KeyboardInput/TextInputKeyboardManager/index.ts +9 -0
- package/components/Keyboard/KeyboardInput/utils/{EventEmitterManager.js → EventEmitterManager.ts} +5 -4
- package/components/Keyboard/KeyboardInput/utils/{KeyboardUtils.js → KeyboardUtils.ts} +0 -0
- package/components/Keyboard/KeyboardTracking/{KeyboardAwareInsetsView.js → KeyboardAwareInsetsView.tsx} +3 -4
- package/components/Keyboard/KeyboardTracking/{KeyboardTrackingView.android.js → KeyboardTrackingView/KeyboardTrackingView.android.tsx} +1 -0
- package/components/Keyboard/KeyboardTracking/{KeyboardTrackingView.ios.js → KeyboardTrackingView/KeyboardTrackingView.ios.tsx} +8 -14
- package/components/Keyboard/KeyboardTracking/KeyboardTrackingView/index.tsx +50 -0
- package/components/Keyboard/index.ts +15 -0
- package/components/SafeArea/{SafeAreaInsetsManager.js → SafeAreaInsetsManager.ts} +10 -7
- package/components/SafeArea/SafeAreaSpacerView.tsx +19 -0
- package/components/WheelPicker/WheelPickerItem.tsx +21 -0
- package/components/WheelPicker/index.tsx +149 -0
- package/components/index.ts +14 -0
- package/ios/reactnativeuilib/keyboardinput/lninterpolation/LNAnimatorTemp.h +4 -4
- package/ios/reactnativeuilib/keyboardinput/lninterpolation/LNAnimatorTemp.m +6 -6
- package/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +22 -22
- package/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/{RCTCustomKeyboardViewController.h → RCTCustomKeyboardViewControllerTemp.h} +2 -2
- package/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/{RCTCustomKeyboardViewController.m → RCTCustomKeyboardViewControllerTemp.m} +4 -4
- package/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m +20 -2
- package/ios/reactnativeuilib.xcodeproj/project.pbxproj +6 -6
- package/package.json +1 -1
- package/android/.gradle/5.6.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/5.6.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/5.6.1/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/codeStyles/Project.xml +0 -116
- package/android/.idea/encodings.xml +0 -4
- package/android/.idea/gradle.xml +0 -12
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/modules.xml +0 -8
- package/android/.idea/runConfigurations.xml +0 -12
- package/android/.idea/vcs.xml +0 -6
- package/android/.idea/workspace.xml +0 -547
- package/android/android.iml +0 -18
- package/android/build/.transforms/6a4a003a5436f1cfa6c642f89a88b8f1/classes/classes.dex +0 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json +0 -1
- package/android/build/intermediates/compile_library_classes/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/incremental/debug-mergeJniLibs/merge-state +0 -0
- package/android/build/intermediates/incremental/debug-mergeNativeLibs/merge-state +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/UiLibPackageList.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/highlighterview/HighlightFrame.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/highlighterview/HighlightViewTagParams.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/highlighterview/HighlighterView.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/highlighterview/HighlighterViewPackage.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/highlighterview/ReactHacks.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/highlighterview/UiUtils.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/AppContextHolder$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/AppContextHolder.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$3.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$4.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout$5.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootView.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewManager.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewShadow.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/KeyboardInputModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/KeyboardInputPackage.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/ReactContextHolder.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor$Listener.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor$Listener.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/utils/PredicateFunc.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils$VisibleViewClassMatchPredicate.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/textinput/DefaultKeyListener.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/textinput/KeyListenerProxy.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/textinput/ViewUtils.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/utils/LogForwarder$LogType.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/utils/LogForwarder.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/wheelpicker/WheelPicker$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/wheelpicker/WheelPicker.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/wheelpicker/WheelPickerManager.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/wix/reactnativeuilib/wheelpicker/WheelPickerPackage.class +0 -0
- package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +0 -11
- package/android/build/intermediates/merged_manifests/debug/output.json +0 -1
- package/android/build/intermediates/runtime_library_classes/debug/classes.jar +0 -0
- package/android/build/intermediates/symbols/debug/R.txt +0 -1801
- package/android/build/intermediates/transforms/mergeJniLibs/debug/__content__.json +0 -1
- package/android/local.properties +0 -8
- package/android/react-native-ui-lib.iml +0 -144
- package/components/Keyboard/index.js +0 -7
- package/components/SafeArea/SafeAreaSpacerView.js +0 -16
- package/components/WheelPicker/WheelPickerItem.js +0 -21
- package/components/WheelPicker/index.js +0 -128
- package/components/index.js +0 -17
- package/ios/reactnativeuilib.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/reactnativeuilib.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/reactnativeuilib.xcodeproj/project.xcworkspace/xcuserdata/michaelle.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/reactnativeuilib.xcodeproj/xcuserdata/michaelle.xcuserdatad/xcschemes/xcschememanagement.plist +0 -19
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import React, {Component} from 'react';
|
|
3
|
+
import {DeviceEventEmitter, requireNativeComponent, StyleSheet, View, ViewStyle, TextStyle} from 'react-native';
|
|
4
|
+
|
|
5
|
+
import WheelPickerItem from './WheelPickerItem';
|
|
6
|
+
import {Constants} from '../../../src/commons/new';
|
|
7
|
+
import {LogService} from '../../../src/services';
|
|
8
|
+
import {Typography, Colors} from '../../../src/style';
|
|
9
|
+
|
|
10
|
+
import {PickerPackage, CommunityPickerPackage} from '../../../src/optionalDependencies';
|
|
11
|
+
const Picker = PickerPackage?.Picker || CommunityPickerPackage?.Picker || (() => null);
|
|
12
|
+
|
|
13
|
+
if (!PickerPackage) {
|
|
14
|
+
if (CommunityPickerPackage) {
|
|
15
|
+
console.warn(`RNUILib Picker will soon migrate to use "@react-native-picker/picker" package instead of '@react-native-community/picker'`);
|
|
16
|
+
} else {
|
|
17
|
+
console.error(`RNUILib Picker requires installing "@react-native-picker/picker" dependency`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const WheelPickerNative = requireNativeComponent('WheelPicker');
|
|
22
|
+
|
|
23
|
+
export type WheelPickerProps = {
|
|
24
|
+
/**
|
|
25
|
+
* the current selected value of the picker
|
|
26
|
+
*/
|
|
27
|
+
selectedValue?: string | number;
|
|
28
|
+
/**
|
|
29
|
+
* callback for when a value change
|
|
30
|
+
*/
|
|
31
|
+
onValueChange?: (value: string | number, index: number) => void;
|
|
32
|
+
/**
|
|
33
|
+
* pass custom style
|
|
34
|
+
*/
|
|
35
|
+
style?: ViewStyle;
|
|
36
|
+
/**
|
|
37
|
+
* pass custom label style: fontSize, fontFamily, color<br>
|
|
38
|
+
* Note: label's color will override the text color (hex only)
|
|
39
|
+
*/
|
|
40
|
+
labelStyle?: TextStyle;
|
|
41
|
+
/**
|
|
42
|
+
* The height of the selected item
|
|
43
|
+
*/
|
|
44
|
+
itemHeight?: number;
|
|
45
|
+
/**
|
|
46
|
+
* The color of the wheel picker (hex only)
|
|
47
|
+
*/
|
|
48
|
+
color?: string;
|
|
49
|
+
/**
|
|
50
|
+
* pass custom style for the picker item
|
|
51
|
+
*/
|
|
52
|
+
itemStyle?: ViewStyle;
|
|
53
|
+
children?: JSX.Element | JSX.Element[];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
class WheelPicker extends Component<WheelPickerProps> {
|
|
57
|
+
static displayName = 'WheelPicker';
|
|
58
|
+
|
|
59
|
+
static defaultProps = {
|
|
60
|
+
labelStyle: {fontSize: Typography.text70?.fontSize, fontFamily: Typography.text70?.fontFamily},
|
|
61
|
+
color: Colors.primary
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
static Item: typeof WheelPickerItem;
|
|
65
|
+
|
|
66
|
+
constructor(props: WheelPickerProps) {
|
|
67
|
+
super(props);
|
|
68
|
+
this.onValueChange = this.onValueChange.bind(this); //eslint-disable-line
|
|
69
|
+
this.getItems();
|
|
70
|
+
DeviceEventEmitter.addListener('log', this.onLogReceived); // TODO: consider moving to a more generic place (base class?)
|
|
71
|
+
|
|
72
|
+
LogService.componentDeprecationWarn({oldComponent: 'WheelPicker', newComponent: 'Incubator.WheelPicker'});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
state = {
|
|
76
|
+
items: this.getItems()
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
onLogReceived = (event: any) => {
|
|
80
|
+
// @ts-expect-error
|
|
81
|
+
console[event.LogType](event.TAG, event.text);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
onValueChange(event: any) {
|
|
85
|
+
const index = event.nativeEvent.itemIndex;
|
|
86
|
+
const {onValueChange} = this.props;
|
|
87
|
+
if (onValueChange) {
|
|
88
|
+
const {items} = this.state;
|
|
89
|
+
onValueChange(items[index].value, index);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
getItems() {
|
|
94
|
+
const {children} = this.props;
|
|
95
|
+
|
|
96
|
+
const items = _.map(React.Children.toArray(children), child => ({
|
|
97
|
+
//@ts-expect-error
|
|
98
|
+
value: child.props.value,
|
|
99
|
+
//@ts-expect-error
|
|
100
|
+
label: child.props.label
|
|
101
|
+
}));
|
|
102
|
+
return items;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
getInitialIndex() {
|
|
106
|
+
const {items} = this.state;
|
|
107
|
+
const {selectedValue} = this.props;
|
|
108
|
+
return _.findIndex(items, {value: selectedValue});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
extractLabelsFromItems() {
|
|
112
|
+
return _.map(this.state.items, 'label');
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
render() {
|
|
116
|
+
const {style, color, labelStyle, itemHeight} = this.props;
|
|
117
|
+
|
|
118
|
+
return (
|
|
119
|
+
<View collapsable={false} style={styles.container}>
|
|
120
|
+
<WheelPickerNative
|
|
121
|
+
// @ts-expect-error
|
|
122
|
+
data={this.extractLabelsFromItems()}
|
|
123
|
+
initialIndex={this.getInitialIndex()}
|
|
124
|
+
onChange={this.onValueChange}
|
|
125
|
+
style={[styles.wheelPicker, style]}
|
|
126
|
+
color={color}
|
|
127
|
+
labelColor={labelStyle?.color || color}
|
|
128
|
+
fontSize={labelStyle?.fontSize}
|
|
129
|
+
itemHeight={itemHeight}
|
|
130
|
+
fontFamily={labelStyle?.fontFamily}
|
|
131
|
+
/>
|
|
132
|
+
</View>
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
WheelPicker.Item = WheelPickerItem;
|
|
138
|
+
|
|
139
|
+
const styles = StyleSheet.create({
|
|
140
|
+
container: {
|
|
141
|
+
overflow: 'hidden'
|
|
142
|
+
},
|
|
143
|
+
wheelPicker: {
|
|
144
|
+
width: 200,
|
|
145
|
+
height: 200
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
export default Constants.isAndroid ? WheelPicker : Picker;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import HighlighterOverlayView from './HighlighterOverlayView';
|
|
2
|
+
import SafeAreaSpacerView from './SafeArea/SafeAreaSpacerView';
|
|
3
|
+
import WheelPicker, {WheelPickerProps} from './WheelPicker';
|
|
4
|
+
import SafeAreaInsetsManager from './SafeArea/SafeAreaInsetsManager';
|
|
5
|
+
import Keyboard from './Keyboard';
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
HighlighterOverlayView,
|
|
9
|
+
SafeAreaSpacerView,
|
|
10
|
+
WheelPicker,
|
|
11
|
+
WheelPickerProps,
|
|
12
|
+
SafeAreaInsetsManager,
|
|
13
|
+
Keyboard
|
|
14
|
+
};
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
@import UIKit;
|
|
10
10
|
|
|
11
|
-
@protocol
|
|
11
|
+
@protocol LNAnimationTemp <NSObject>
|
|
12
12
|
|
|
13
13
|
@property (nonatomic) CGFloat progress;
|
|
14
14
|
|
|
15
15
|
@end
|
|
16
16
|
|
|
17
|
-
@interface
|
|
17
|
+
@interface LNViewAnimationTemp : NSObject <LNAnimationTemp>
|
|
18
18
|
|
|
19
19
|
@property (nonatomic, strong, readonly) UIView* view;
|
|
20
20
|
@property (nonatomic, strong, readonly) NSString* keyPath;
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
@interface LNAnimatorTemp : NSObject
|
|
28
28
|
|
|
29
29
|
@property (nonatomic, readonly) NSTimeInterval duration;
|
|
30
|
-
@property (nonatomic, strong, readonly) NSArray<id<
|
|
30
|
+
@property (nonatomic, strong, readonly) NSArray<id<LNAnimationTemp>>* animations;
|
|
31
31
|
|
|
32
|
-
+ (instancetype)animatorWithDuration:(NSTimeInterval)duration animations:(NSArray<id<
|
|
32
|
+
+ (instancetype)animatorWithDuration:(NSTimeInterval)duration animations:(NSArray<id<LNAnimationTemp>>*)animations completionHandler:(void(^)(BOOL completed))completionHandler;
|
|
33
33
|
|
|
34
34
|
- (void)start;
|
|
35
35
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
#import "LNInterpolation.h"
|
|
12
12
|
|
|
13
|
-
@implementation
|
|
13
|
+
@implementation LNViewAnimationTemp
|
|
14
14
|
{
|
|
15
15
|
id _fromValue;
|
|
16
16
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
- (instancetype)init
|
|
21
21
|
{
|
|
22
|
-
[NSException raise:NSInvalidArgumentException format:@"Use animationWithView:keyPath:toValue: to create
|
|
22
|
+
[NSException raise:NSInvalidArgumentException format:@"Use animationWithView:keyPath:toValue: to create LNViewAnimationTemp objects."];
|
|
23
23
|
return nil;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
+ (instancetype)animationWithView:(UIView*)view keyPath:(NSString*)keyPath toValue:(id)toValue
|
|
32
32
|
{
|
|
33
|
-
|
|
33
|
+
LNViewAnimationTemp* rv = [[LNViewAnimationTemp alloc] _init];
|
|
34
34
|
|
|
35
35
|
if(rv)
|
|
36
36
|
{
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
- (instancetype)init
|
|
64
64
|
{
|
|
65
|
-
[NSException raise:NSInvalidArgumentException format:@"Use animationWithView:keyPath:toValue: to create
|
|
65
|
+
[NSException raise:NSInvalidArgumentException format:@"Use animationWithView:keyPath:toValue: to create LNViewAnimationTemp objects."];
|
|
66
66
|
return nil;
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
return [super init];
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
+ (instancetype)animatorWithDuration:(NSTimeInterval)duration animations:(NSArray<id<
|
|
74
|
+
+ (instancetype)animatorWithDuration:(NSTimeInterval)duration animations:(NSArray<id<LNAnimationTemp>>*)animations completionHandler:(void(^)(BOOL completed))completionHandler
|
|
75
75
|
{
|
|
76
76
|
LNAnimatorTemp* rv = [[LNAnimatorTemp alloc] _init];
|
|
77
77
|
if(rv)
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
_previousFrameTimestamp = _displayLink.timestamp;
|
|
104
104
|
|
|
105
|
-
[_animations enumerateObjectsUsingBlock:^(id<
|
|
105
|
+
[_animations enumerateObjectsUsingBlock:^(id<LNAnimationTemp> _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
|
106
106
|
obj.progress = MIN(_elapsedTime / _duration, 1.0);
|
|
107
107
|
}];
|
|
108
108
|
|
package/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
|
|
8
8
|
#import "RCTCustomInputControllerTemp.h"
|
|
9
|
-
#import "
|
|
9
|
+
#import "RCTCustomKeyboardViewControllerTemp.h"
|
|
10
10
|
|
|
11
11
|
#import <React/RCTUIManager.h>
|
|
12
12
|
#import <objc/runtime.h>
|
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
|
|
16
16
|
#define kHlperViewTag 0x1f1f1f
|
|
17
17
|
|
|
18
|
-
NSString *const
|
|
18
|
+
NSString *const RCTCustomInputControllerKeyboardResigendEventTemp = @"kbdResigned";
|
|
19
19
|
|
|
20
|
-
@protocol
|
|
20
|
+
@protocol _WXInputHelperViewDelegateTemp <NSObject>
|
|
21
21
|
-(void)_WXInputHelperViewResignFirstResponder:(UIView*)wxInputHelperView;
|
|
22
22
|
@end
|
|
23
23
|
|
|
24
|
-
@interface
|
|
24
|
+
@interface _WXInputHelperViewTemp : UIView
|
|
25
25
|
|
|
26
26
|
@property (nullable, nonatomic, readwrite, strong) UIInputViewController *inputViewController;
|
|
27
|
-
@property (nonatomic, weak) id<
|
|
27
|
+
@property (nonatomic, weak) id<_WXInputHelperViewDelegateTemp> delegate;
|
|
28
28
|
@property (nullable, readwrite, strong) UIView *inputAccessoryView;
|
|
29
29
|
@property (nonatomic) BOOL keepInSuperviewOnResign;
|
|
30
30
|
|
|
31
31
|
@end
|
|
32
32
|
|
|
33
|
-
@implementation
|
|
33
|
+
@implementation _WXInputHelperViewTemp
|
|
34
34
|
|
|
35
35
|
- (BOOL)canBecomeFirstResponder
|
|
36
36
|
{
|
|
@@ -58,7 +58,7 @@ NSString *const RCTCustomInputControllerKeyboardResigendEvent = @"kbdResigned";
|
|
|
58
58
|
@end
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
@interface RCTCustomInputControllerTemp () <
|
|
61
|
+
@interface RCTCustomInputControllerTemp () <_WXInputHelperViewDelegateTemp> {
|
|
62
62
|
UIWindow *_fullScreenWindow;
|
|
63
63
|
BOOL _performingExpandTransition;
|
|
64
64
|
}
|
|
@@ -81,7 +81,7 @@ NSString *const RCTCustomInputControllerKeyboardResigendEvent = @"kbdResigned";
|
|
|
81
81
|
|
|
82
82
|
- (NSArray<NSString *> *)supportedEvents
|
|
83
83
|
{
|
|
84
|
-
return @[
|
|
84
|
+
return @[RCTCustomInputControllerKeyboardResigendEventTemp];
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
RCT_EXPORT_MODULE(CustomInputControllerTemp)
|
|
@@ -141,10 +141,10 @@ RCT_EXPORT_METHOD(presentCustomInputComponent:(nonnull NSNumber*)inputFieldTag p
|
|
|
141
141
|
self.customInputComponentPresented = NO;
|
|
142
142
|
|
|
143
143
|
BOOL useSafeArea = [self shouldUseSafeAreaFrom:params];
|
|
144
|
-
|
|
144
|
+
RCTCustomKeyboardViewControllerTemp* customKeyboardController = [[RCTCustomKeyboardViewControllerTemp alloc] initWithUsingSafeArea:useSafeArea];
|
|
145
145
|
customKeyboardController.rootView = rv;
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
_WXInputHelperViewTemp* helperView = [[_WXInputHelperViewTemp alloc] initWithFrame:CGRectZero];
|
|
148
148
|
helperView.tag = kHlperViewTag;
|
|
149
149
|
helperView.delegate = self;
|
|
150
150
|
|
|
@@ -210,7 +210,7 @@ RCT_EXPORT_METHOD(resetInput:(nonnull NSNumber*)inputFieldTag)
|
|
|
210
210
|
UIView* inputField = [self.bridge.uiManager viewForReactTag:inputFieldTag];
|
|
211
211
|
if(inputField != nil)
|
|
212
212
|
{
|
|
213
|
-
|
|
213
|
+
_WXInputHelperViewTemp* helperView = [inputField.superview viewWithTag:kHlperViewTag];
|
|
214
214
|
if(helperView != nil && [helperView isFirstResponder])
|
|
215
215
|
{//restore the first responder only if it was already the first responder to prevent the keyboard from opening again if not necessary
|
|
216
216
|
[inputField reactFocus];
|
|
@@ -232,11 +232,11 @@ RCT_EXPORT_METHOD(dismissKeyboard)
|
|
|
232
232
|
UIView* inputField = [self.bridge.uiManager viewForReactTag:inputFieldTag];
|
|
233
233
|
if(inputField != nil)
|
|
234
234
|
{
|
|
235
|
-
|
|
235
|
+
_WXInputHelperViewTemp* helperView = [inputField.superview viewWithTag:kHlperViewTag];
|
|
236
236
|
if(helperView != nil)
|
|
237
237
|
{
|
|
238
|
-
[((
|
|
239
|
-
((
|
|
238
|
+
[((RCTCustomKeyboardViewControllerTemp*)helperView.inputViewController) setAllowsSelfSizing:YES];
|
|
239
|
+
((RCTCustomKeyboardViewControllerTemp*)helperView.inputViewController).heightConstraint.constant = newHeight;
|
|
240
240
|
|
|
241
241
|
UIInputView *inputView = helperView.inputViewController.inputView;
|
|
242
242
|
[inputView setNeedsUpdateConstraints];
|
|
@@ -288,14 +288,14 @@ RCT_EXPORT_METHOD(expandFullScreenForInput:(nonnull NSNumber*)inputFieldTag)
|
|
|
288
288
|
UIView* inputField = [self.bridge.uiManager viewForReactTag:inputFieldTag];
|
|
289
289
|
if(inputField != nil)
|
|
290
290
|
{
|
|
291
|
-
|
|
291
|
+
_WXInputHelperViewTemp* helperView = [inputField.superview viewWithTag:kHlperViewTag];
|
|
292
292
|
if(helperView != nil)
|
|
293
293
|
{
|
|
294
294
|
_performingExpandTransition = YES;
|
|
295
295
|
|
|
296
296
|
helperView.keepInSuperviewOnResign = YES;
|
|
297
297
|
|
|
298
|
-
|
|
298
|
+
RCTCustomKeyboardViewControllerTemp *customKeyboardViewController = (RCTCustomKeyboardViewControllerTemp*)helperView.inputViewController;
|
|
299
299
|
RCTRootView *rv = customKeyboardViewController.rootView;
|
|
300
300
|
UIInputView *inputView = helperView.inputViewController.inputView;
|
|
301
301
|
|
|
@@ -318,7 +318,7 @@ RCT_EXPORT_METHOD(expandFullScreenForInput:(nonnull NSNumber*)inputFieldTag)
|
|
|
318
318
|
}];
|
|
319
319
|
|
|
320
320
|
[[LNAnimatorTemp animatorWithDuration:0.5
|
|
321
|
-
animations:@[[
|
|
321
|
+
animations:@[[LNViewAnimationTemp animationWithView:_fullScreenWindow keyPath:@"frame" toValue:[NSValue valueWithCGRect:[UIScreen mainScreen].bounds]]]
|
|
322
322
|
completionHandler:^(BOOL completed)
|
|
323
323
|
{
|
|
324
324
|
[UIView performWithoutAnimation:^{
|
|
@@ -344,7 +344,7 @@ RCT_EXPORT_METHOD(resetSizeForInput:(nonnull NSNumber*)inputFieldTag)
|
|
|
344
344
|
UIView* inputField = [self.bridge.uiManager viewForReactTag:inputFieldTag];
|
|
345
345
|
if(inputField != nil)
|
|
346
346
|
{
|
|
347
|
-
|
|
347
|
+
_WXInputHelperViewTemp* helperView = [inputField.superview viewWithTag:kHlperViewTag];
|
|
348
348
|
if(helperView != nil)
|
|
349
349
|
{
|
|
350
350
|
_performingExpandTransition = YES;
|
|
@@ -366,10 +366,10 @@ RCT_EXPORT_METHOD(resetSizeForInput:(nonnull NSNumber*)inputFieldTag)
|
|
|
366
366
|
[_fullScreenWindow endEditing:YES];
|
|
367
367
|
|
|
368
368
|
[[LNAnimatorTemp animatorWithDuration:0.5
|
|
369
|
-
animations:@[[
|
|
369
|
+
animations:@[[LNViewAnimationTemp animationWithView:_fullScreenWindow keyPath:@"frame" toValue:[NSValue valueWithCGRect:keyboardTargetFrame]]]
|
|
370
370
|
completionHandler:^(BOOL completed)
|
|
371
371
|
{
|
|
372
|
-
|
|
372
|
+
RCTCustomKeyboardViewControllerTemp *customKeyboardViewController = (RCTCustomKeyboardViewControllerTemp*)helperView.inputViewController;
|
|
373
373
|
RCTRootView *rv = (RCTRootView*)_fullScreenWindow.rootViewController.view;
|
|
374
374
|
|
|
375
375
|
[UIView performWithoutAnimation:^{
|
|
@@ -388,13 +388,13 @@ RCT_EXPORT_METHOD(resetSizeForInput:(nonnull NSNumber*)inputFieldTag)
|
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
#pragma mark -
|
|
391
|
+
#pragma mark - _WXInputHelperViewDelegateTemp methods
|
|
392
392
|
|
|
393
393
|
-(void)_WXInputHelperViewResignFirstResponder:(UIView*)wxInputHelperView
|
|
394
394
|
{
|
|
395
395
|
if(self.customInputComponentPresented)
|
|
396
396
|
{
|
|
397
|
-
[self sendEventWithName:
|
|
397
|
+
[self sendEventWithName:RCTCustomInputControllerKeyboardResigendEventTemp body:nil];
|
|
398
398
|
}
|
|
399
399
|
self.customInputComponentPresented = NO;
|
|
400
400
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// RCTCustomKeyboardViewControllerTemp.h
|
|
3
3
|
//
|
|
4
4
|
// Created by Leo Natan (Wix) on 12/12/2016.
|
|
5
5
|
// Copyright © 2016 Leo Natan. All rights reserved.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
#import "RCTRootView.h"
|
|
14
14
|
#endif
|
|
15
15
|
|
|
16
|
-
@interface
|
|
16
|
+
@interface RCTCustomKeyboardViewControllerTemp : UIInputViewController
|
|
17
17
|
|
|
18
18
|
- (void) setAllowsSelfSizing:(BOOL)allowsSelfSizing;
|
|
19
19
|
- (instancetype)initWithUsingSafeArea:(BOOL)useSafeArea;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// RCTCustomKeyboardViewControllerTemp.m
|
|
3
3
|
//
|
|
4
4
|
// Created by Leo Natan (Wix) on 12/12/2016.
|
|
5
5
|
// Copyright © 2016 Leo Natan. All rights reserved.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
|
-
#import "
|
|
8
|
+
#import "RCTCustomKeyboardViewControllerTemp.h"
|
|
9
9
|
|
|
10
10
|
#if __has_include(<KeyboardTrackingView/ObservingInputAccessoryViewTemp.h>)
|
|
11
11
|
#import <KeyboardTrackingView/ObservingInputAccessoryViewTemp.h>
|
|
12
12
|
#define ObservingInputAccessoryViewTemp_IsAvailable true
|
|
13
13
|
#endif
|
|
14
14
|
|
|
15
|
-
@interface
|
|
15
|
+
@interface RCTCustomKeyboardViewControllerTemp ()
|
|
16
16
|
@property (nonatomic, assign, getter=isUsingSafeArea) BOOL useSafeArea;
|
|
17
17
|
@end
|
|
18
18
|
|
|
19
|
-
@implementation
|
|
19
|
+
@implementation RCTCustomKeyboardViewControllerTemp
|
|
20
20
|
|
|
21
21
|
- (instancetype)initWithUsingSafeArea:(BOOL)useSafeArea
|
|
22
22
|
{
|
|
@@ -50,6 +50,7 @@ typedef NS_ENUM(NSUInteger, KeyboardTrackingScrollBehavior) {
|
|
|
50
50
|
@property (nonatomic) CGFloat originalHeight;
|
|
51
51
|
@property (nonatomic) KeyboardTrackingScrollBehavior scrollBehavior;
|
|
52
52
|
@property (nonatomic) BOOL addBottomView;
|
|
53
|
+
@property (nonatomic) BOOL useSafeArea;
|
|
53
54
|
@property (nonatomic) BOOL scrollToFocusedInput;
|
|
54
55
|
@property (nonatomic) BOOL allowHitsOutsideBounds;
|
|
55
56
|
|
|
@@ -483,7 +484,7 @@ typedef NS_ENUM(NSUInteger, KeyboardTrackingScrollBehavior) {
|
|
|
483
484
|
{
|
|
484
485
|
CGFloat bottomSafeArea = 0;
|
|
485
486
|
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_10_3
|
|
486
|
-
if (@available(iOS 11.0, *)) {
|
|
487
|
+
if (@available(iOS 11.0, *) && self.useSafeArea) {
|
|
487
488
|
bottomSafeArea = self.superview ? self.superview.safeAreaInsets.bottom : self.safeAreaInsets.bottom;
|
|
488
489
|
}
|
|
489
490
|
#endif
|
|
@@ -502,12 +503,28 @@ typedef NS_ENUM(NSUInteger, KeyboardTrackingScrollBehavior) {
|
|
|
502
503
|
});
|
|
503
504
|
}
|
|
504
505
|
|
|
506
|
+
-(CGFloat)getTabBarHeight
|
|
507
|
+
{
|
|
508
|
+
if (@available(iOS 11.0, *)) {
|
|
509
|
+
UIWindow *window = UIApplication.sharedApplication.windows.firstObject;
|
|
510
|
+
if ([window.rootViewController isKindOfClass:[UITabBarController class]])
|
|
511
|
+
{
|
|
512
|
+
UITabBarController *tabBarController = [UITabBarController new];
|
|
513
|
+
CGFloat tabBarHeight = tabBarController.tabBar.frame.size.height;
|
|
514
|
+
CGFloat bottomPadding = window.safeAreaInsets.bottom;
|
|
515
|
+
return tabBarHeight + bottomPadding;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return 0;
|
|
519
|
+
}
|
|
520
|
+
|
|
505
521
|
#pragma mark - ObservingInputAccessoryViewTempDelegate methods
|
|
506
522
|
|
|
507
523
|
-(void)updateTransformAndInsets
|
|
508
524
|
{
|
|
509
525
|
CGFloat bottomSafeArea = [self getBottomSafeArea];
|
|
510
|
-
CGFloat
|
|
526
|
+
CGFloat tabBarHeight = [self getTabBarHeight];
|
|
527
|
+
CGFloat accessoryTranslation = MIN(-bottomSafeArea, -_ObservingInputAccessoryViewTemp.keyboardHeight + tabBarHeight);
|
|
511
528
|
|
|
512
529
|
if (_ObservingInputAccessoryViewTemp.keyboardHeight <= bottomSafeArea) {
|
|
513
530
|
_bottomViewHeight = kBottomViewHeightTemp;
|
|
@@ -632,6 +649,7 @@ RCT_REMAP_VIEW_PROPERTY(revealKeyboardInteractive, revealKeyboardInteractive, BO
|
|
|
632
649
|
RCT_REMAP_VIEW_PROPERTY(manageScrollView, manageScrollView, BOOL)
|
|
633
650
|
RCT_REMAP_VIEW_PROPERTY(requiresSameParentToManageScrollView, requiresSameParentToManageScrollView, BOOL)
|
|
634
651
|
RCT_REMAP_VIEW_PROPERTY(addBottomView, addBottomView, BOOL)
|
|
652
|
+
RCT_REMAP_VIEW_PROPERTY(useSafeArea, useSafeArea, BOOL)
|
|
635
653
|
RCT_REMAP_VIEW_PROPERTY(scrollToFocusedInput, scrollToFocusedInput, BOOL)
|
|
636
654
|
RCT_REMAP_VIEW_PROPERTY(allowHitsOutsideBounds, allowHitsOutsideBounds, BOOL)
|
|
637
655
|
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
1054385623BBA1C200D04E48 /* ObservingInputAccessoryViewTemp.m in Sources */ = {isa = PBXBuildFile; fileRef = 1054385523BBA1C200D04E48 /* ObservingInputAccessoryViewTemp.m */; };
|
|
11
11
|
1054385923BBA27900D04E48 /* UIResponder+FirstResponderTemp.m in Sources */ = {isa = PBXBuildFile; fileRef = 1054385823BBA27900D04E48 /* UIResponder+FirstResponderTemp.m */; };
|
|
12
12
|
1054385C23BC748700D04E48 /* KeyboardTrackingViewTempManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 1054385A23BC748700D04E48 /* KeyboardTrackingViewTempManager.m */; };
|
|
13
|
+
1054776424B47EA800D2026D /* RCTCustomKeyboardViewControllerTemp.m in Sources */ = {isa = PBXBuildFile; fileRef = 1054776324B47EA800D2026D /* RCTCustomKeyboardViewControllerTemp.m */; };
|
|
13
14
|
10823FBE23B0BAA200429E9A /* Color+Interpolation.m in Sources */ = {isa = PBXBuildFile; fileRef = 10823FBD23B0BAA200429E9A /* Color+Interpolation.m */; };
|
|
14
15
|
10823FC223B0BE9100429E9A /* LNInterpolable.m in Sources */ = {isa = PBXBuildFile; fileRef = 10823FC123B0BE9100429E9A /* LNInterpolable.m */; };
|
|
15
16
|
10823FC623B0BF0C00429E9A /* NSValue+Interpolation.mm in Sources */ = {isa = PBXBuildFile; fileRef = 10823FC523B0BF0C00429E9A /* NSValue+Interpolation.mm */; };
|
|
16
|
-
10823FCD23B0BFAC00429E9A /* RCTCustomKeyboardViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 10823FCC23B0BFAC00429E9A /* RCTCustomKeyboardViewController.m */; };
|
|
17
17
|
1098BE4B246034EB0020440A /* LNAnimatorTemp.m in Sources */ = {isa = PBXBuildFile; fileRef = 1098BE4A246034EB0020440A /* LNAnimatorTemp.m */; };
|
|
18
18
|
1098BE4E246035090020440A /* RCTCustomInputControllerTemp.m in Sources */ = {isa = PBXBuildFile; fileRef = 1098BE4D246035090020440A /* RCTCustomInputControllerTemp.m */; };
|
|
19
19
|
D8AFAC9F204E004D00D28FED /* SafeAreaSpacerViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = D8AFAC99204E004C00D28FED /* SafeAreaSpacerViewManager.m */; };
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
1054385823BBA27900D04E48 /* UIResponder+FirstResponderTemp.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "UIResponder+FirstResponderTemp.m"; sourceTree = "<group>"; };
|
|
45
45
|
1054385A23BC748700D04E48 /* KeyboardTrackingViewTempManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KeyboardTrackingViewTempManager.m; sourceTree = "<group>"; };
|
|
46
46
|
1054385B23BC748700D04E48 /* KeyboardTrackingViewTempManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KeyboardTrackingViewTempManager.h; sourceTree = "<group>"; };
|
|
47
|
+
1054776324B47EA800D2026D /* RCTCustomKeyboardViewControllerTemp.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTCustomKeyboardViewControllerTemp.m; sourceTree = "<group>"; };
|
|
48
|
+
1054776524B47EB800D2026D /* RCTCustomKeyboardViewControllerTemp.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTCustomKeyboardViewControllerTemp.h; sourceTree = "<group>"; };
|
|
47
49
|
10823FB823B0B9D000429E9A /* Color+Interpolation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Color+Interpolation.h"; sourceTree = "<group>"; };
|
|
48
50
|
10823FBA23B0B9ED00429E9A /* LNInterpolable.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LNInterpolable.h; sourceTree = "<group>"; };
|
|
49
51
|
10823FBB23B0B9FA00429E9A /* LNInterpolation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LNInterpolation.h; sourceTree = "<group>"; };
|
|
@@ -51,8 +53,6 @@
|
|
|
51
53
|
10823FBD23B0BAA200429E9A /* Color+Interpolation.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "Color+Interpolation.m"; sourceTree = "<group>"; };
|
|
52
54
|
10823FC123B0BE9100429E9A /* LNInterpolable.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LNInterpolable.m; sourceTree = "<group>"; };
|
|
53
55
|
10823FC523B0BF0C00429E9A /* NSValue+Interpolation.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = "NSValue+Interpolation.mm"; sourceTree = "<group>"; };
|
|
54
|
-
10823FCB23B0BF9600429E9A /* RCTCustomKeyboardViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTCustomKeyboardViewController.h; sourceTree = "<group>"; };
|
|
55
|
-
10823FCC23B0BFAC00429E9A /* RCTCustomKeyboardViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTCustomKeyboardViewController.m; sourceTree = "<group>"; };
|
|
56
56
|
1098BE49246034EB0020440A /* LNAnimatorTemp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LNAnimatorTemp.h; sourceTree = "<group>"; };
|
|
57
57
|
1098BE4A246034EB0020440A /* LNAnimatorTemp.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LNAnimatorTemp.m; sourceTree = "<group>"; };
|
|
58
58
|
1098BE4C246035090020440A /* RCTCustomInputControllerTemp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTCustomInputControllerTemp.h; sourceTree = "<group>"; };
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
children = (
|
|
129
129
|
1098BE4C246035090020440A /* RCTCustomInputControllerTemp.h */,
|
|
130
130
|
1098BE4D246035090020440A /* RCTCustomInputControllerTemp.m */,
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
1054776324B47EA800D2026D /* RCTCustomKeyboardViewControllerTemp.m */,
|
|
132
|
+
1054776524B47EB800D2026D /* RCTCustomKeyboardViewControllerTemp.h */,
|
|
133
133
|
);
|
|
134
134
|
path = rctcustomInputcontroller;
|
|
135
135
|
sourceTree = "<group>";
|
|
@@ -246,7 +246,6 @@
|
|
|
246
246
|
isa = PBXSourcesBuildPhase;
|
|
247
247
|
buildActionMask = 2147483647;
|
|
248
248
|
files = (
|
|
249
|
-
10823FCD23B0BFAC00429E9A /* RCTCustomKeyboardViewController.m in Sources */,
|
|
250
249
|
1054385923BBA27900D04E48 /* UIResponder+FirstResponderTemp.m in Sources */,
|
|
251
250
|
1098BE4B246034EB0020440A /* LNAnimatorTemp.m in Sources */,
|
|
252
251
|
D8AFACA2204E004D00D28FED /* SafeAreaSpacerView.m in Sources */,
|
|
@@ -258,6 +257,7 @@
|
|
|
258
257
|
D8D93E7620161B1F00A39331 /* HighlighterViewManager.m in Sources */,
|
|
259
258
|
1054385623BBA1C200D04E48 /* ObservingInputAccessoryViewTemp.m in Sources */,
|
|
260
259
|
D8E5A538204C4F170000DA01 /* SafeAreaManager.m in Sources */,
|
|
260
|
+
1054776424B47EA800D2026D /* RCTCustomKeyboardViewControllerTemp.m in Sources */,
|
|
261
261
|
D8AFAC9F204E004D00D28FED /* SafeAreaSpacerViewManager.m in Sources */,
|
|
262
262
|
D8AFACA1204E004D00D28FED /* SafeAreaSpacerViewLocalData.m in Sources */,
|
|
263
263
|
10823FBE23B0BAA200429E9A /* Color+Interpolation.m in Sources */,
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|