From 08d64bc8428cf7e72b79200a265ed3eac7e35c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B0=E9=91=AB?= <1192065030@qq.com> Date: Sun, 9 Jan 2022 21:11:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E7=BB=84=E4=BB=B6=20=E5=88=A0=E9=99=A4=E4=BE=9D=E8=B5=96=20@rea?= =?UTF-8?q?ct-native-picker/picker=20=E4=BC=98=E5=8C=96DragDrawe=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/base/ios/Podfile.lock | 563 ------------------ example/examples/ios/Podfile.lock | 6 - example/examples/package.json | 1 - example/examples/src/routes.tsx | 8 - .../examples/src/routes/DragDrawer/index.tsx | 12 +- .../src/routes/SelectCascader/city.ts | 82 --- .../src/routes/SelectCascader/index.tsx | 90 --- packages/core/README.md | 2 +- packages/core/package.json | 1 - packages/core/src/SelectCascader/README.md | 184 ------ packages/core/src/SelectCascader/index.tsx | 270 --------- packages/core/src/index.tsx | 2 - .../pages/components/selectcascader/index.tsx | 11 - .../src/pages/docs/getting-started/README.md | 5 +- website/src/routes/menus.ts | 1 - website/src/routes/router.tsx | 4 - yarn.lock | 314 +++++----- 17 files changed, 159 insertions(+), 1397 deletions(-) delete mode 100644 example/base/ios/Podfile.lock delete mode 100644 example/examples/src/routes/SelectCascader/city.ts delete mode 100644 example/examples/src/routes/SelectCascader/index.tsx delete mode 100644 packages/core/src/SelectCascader/README.md delete mode 100644 packages/core/src/SelectCascader/index.tsx delete mode 100644 website/src/pages/components/selectcascader/index.tsx diff --git a/example/base/ios/Podfile.lock b/example/base/ios/Podfile.lock deleted file mode 100644 index a019d8d48..000000000 --- a/example/base/ios/Podfile.lock +++ /dev/null @@ -1,563 +0,0 @@ -PODS: - - boost (1.76.0) - - CocoaAsyncSocket (7.6.5) - - DoubleConversion (1.1.6) - - FBLazyVector (0.66.1) - - FBReactNativeSpec (0.66.1): - - RCT-Folly (= 2021.06.28.00-v2) - - RCTRequired (= 0.66.1) - - RCTTypeSafety (= 0.66.1) - - React-Core (= 0.66.1) - - React-jsi (= 0.66.1) - - ReactCommon/turbomodule/core (= 0.66.1) - - Flipper (0.99.0): - - Flipper-Folly (~> 2.6) - - Flipper-RSocket (~> 1.4) - - Flipper-Boost-iOSX (1.76.0.1.11) - - Flipper-DoubleConversion (3.1.7) - - Flipper-Fmt (7.1.7) - - Flipper-Folly (2.6.7): - - Flipper-Boost-iOSX - - Flipper-DoubleConversion - - Flipper-Fmt (= 7.1.7) - - Flipper-Glog - - libevent (~> 2.1.12) - - OpenSSL-Universal (= 1.1.180) - - Flipper-Glog (0.3.6) - - Flipper-PeerTalk (0.0.4) - - Flipper-RSocket (1.4.3): - - Flipper-Folly (~> 2.6) - - FlipperKit (0.99.0): - - FlipperKit/Core (= 0.99.0) - - FlipperKit/Core (0.99.0): - - Flipper (~> 0.99.0) - - FlipperKit/CppBridge - - FlipperKit/FBCxxFollyDynamicConvert - - FlipperKit/FBDefines - - FlipperKit/FKPortForwarding - - FlipperKit/CppBridge (0.99.0): - - Flipper (~> 0.99.0) - - FlipperKit/FBCxxFollyDynamicConvert (0.99.0): - - Flipper-Folly (~> 2.6) - - FlipperKit/FBDefines (0.99.0) - - FlipperKit/FKPortForwarding (0.99.0): - - CocoaAsyncSocket (~> 7.6) - - Flipper-PeerTalk (~> 0.0.4) - - FlipperKit/FlipperKitHighlightOverlay (0.99.0) - - FlipperKit/FlipperKitLayoutHelpers (0.99.0): - - FlipperKit/Core - - FlipperKit/FlipperKitHighlightOverlay - - FlipperKit/FlipperKitLayoutTextSearchable - - FlipperKit/FlipperKitLayoutIOSDescriptors (0.99.0): - - FlipperKit/Core - - FlipperKit/FlipperKitHighlightOverlay - - FlipperKit/FlipperKitLayoutHelpers - - YogaKit (~> 1.18) - - FlipperKit/FlipperKitLayoutPlugin (0.99.0): - - FlipperKit/Core - - FlipperKit/FlipperKitHighlightOverlay - - FlipperKit/FlipperKitLayoutHelpers - - FlipperKit/FlipperKitLayoutIOSDescriptors - - FlipperKit/FlipperKitLayoutTextSearchable - - YogaKit (~> 1.18) - - FlipperKit/FlipperKitLayoutTextSearchable (0.99.0) - - FlipperKit/FlipperKitNetworkPlugin (0.99.0): - - FlipperKit/Core - - FlipperKit/FlipperKitReactPlugin (0.99.0): - - FlipperKit/Core - - FlipperKit/FlipperKitUserDefaultsPlugin (0.99.0): - - FlipperKit/Core - - FlipperKit/SKIOSNetworkPlugin (0.99.0): - - FlipperKit/Core - - FlipperKit/FlipperKitNetworkPlugin - - fmt (6.2.1) - - glog (0.3.5) - - libevent (2.1.12) - - OpenSSL-Universal (1.1.180) - - RCT-Folly (2021.06.28.00-v2): - - boost - - DoubleConversion - - fmt (~> 6.2.1) - - glog - - RCT-Folly/Default (= 2021.06.28.00-v2) - - RCT-Folly/Default (2021.06.28.00-v2): - - boost - - DoubleConversion - - fmt (~> 6.2.1) - - glog - - RCTRequired (0.66.1) - - RCTTypeSafety (0.66.1): - - FBLazyVector (= 0.66.1) - - RCT-Folly (= 2021.06.28.00-v2) - - RCTRequired (= 0.66.1) - - React-Core (= 0.66.1) - - React (0.66.1): - - React-Core (= 0.66.1) - - React-Core/DevSupport (= 0.66.1) - - React-Core/RCTWebSocket (= 0.66.1) - - React-RCTActionSheet (= 0.66.1) - - React-RCTAnimation (= 0.66.1) - - React-RCTBlob (= 0.66.1) - - React-RCTImage (= 0.66.1) - - React-RCTLinking (= 0.66.1) - - React-RCTNetwork (= 0.66.1) - - React-RCTSettings (= 0.66.1) - - React-RCTText (= 0.66.1) - - React-RCTVibration (= 0.66.1) - - React-callinvoker (0.66.1) - - React-Core (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default (= 0.66.1) - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/CoreModulesHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/Default (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/DevSupport (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default (= 0.66.1) - - React-Core/RCTWebSocket (= 0.66.1) - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-jsinspector (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTActionSheetHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTAnimationHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTBlobHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTImageHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTLinkingHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTNetworkHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTSettingsHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTTextHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTVibrationHeaders (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-Core/RCTWebSocket (0.66.1): - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/Default (= 0.66.1) - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsiexecutor (= 0.66.1) - - React-perflogger (= 0.66.1) - - Yoga - - React-CoreModules (0.66.1): - - FBReactNativeSpec (= 0.66.1) - - RCT-Folly (= 2021.06.28.00-v2) - - RCTTypeSafety (= 0.66.1) - - React-Core/CoreModulesHeaders (= 0.66.1) - - React-jsi (= 0.66.1) - - React-RCTImage (= 0.66.1) - - ReactCommon/turbomodule/core (= 0.66.1) - - React-cxxreact (0.66.1): - - boost (= 1.76.0) - - DoubleConversion - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-callinvoker (= 0.66.1) - - React-jsi (= 0.66.1) - - React-jsinspector (= 0.66.1) - - React-logger (= 0.66.1) - - React-perflogger (= 0.66.1) - - React-runtimeexecutor (= 0.66.1) - - React-jsi (0.66.1): - - boost (= 1.76.0) - - DoubleConversion - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-jsi/Default (= 0.66.1) - - React-jsi/Default (0.66.1): - - boost (= 1.76.0) - - DoubleConversion - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-jsiexecutor (0.66.1): - - DoubleConversion - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-perflogger (= 0.66.1) - - React-jsinspector (0.66.1) - - React-logger (0.66.1): - - glog - - react-native-safe-area-context (3.3.2): - - React-Core - - React-perflogger (0.66.1) - - React-RCTActionSheet (0.66.1): - - React-Core/RCTActionSheetHeaders (= 0.66.1) - - React-RCTAnimation (0.66.1): - - FBReactNativeSpec (= 0.66.1) - - RCT-Folly (= 2021.06.28.00-v2) - - RCTTypeSafety (= 0.66.1) - - React-Core/RCTAnimationHeaders (= 0.66.1) - - React-jsi (= 0.66.1) - - ReactCommon/turbomodule/core (= 0.66.1) - - React-RCTBlob (0.66.1): - - FBReactNativeSpec (= 0.66.1) - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/RCTBlobHeaders (= 0.66.1) - - React-Core/RCTWebSocket (= 0.66.1) - - React-jsi (= 0.66.1) - - React-RCTNetwork (= 0.66.1) - - ReactCommon/turbomodule/core (= 0.66.1) - - React-RCTImage (0.66.1): - - FBReactNativeSpec (= 0.66.1) - - RCT-Folly (= 2021.06.28.00-v2) - - RCTTypeSafety (= 0.66.1) - - React-Core/RCTImageHeaders (= 0.66.1) - - React-jsi (= 0.66.1) - - React-RCTNetwork (= 0.66.1) - - ReactCommon/turbomodule/core (= 0.66.1) - - React-RCTLinking (0.66.1): - - FBReactNativeSpec (= 0.66.1) - - React-Core/RCTLinkingHeaders (= 0.66.1) - - React-jsi (= 0.66.1) - - ReactCommon/turbomodule/core (= 0.66.1) - - React-RCTNetwork (0.66.1): - - FBReactNativeSpec (= 0.66.1) - - RCT-Folly (= 2021.06.28.00-v2) - - RCTTypeSafety (= 0.66.1) - - React-Core/RCTNetworkHeaders (= 0.66.1) - - React-jsi (= 0.66.1) - - ReactCommon/turbomodule/core (= 0.66.1) - - React-RCTSettings (0.66.1): - - FBReactNativeSpec (= 0.66.1) - - RCT-Folly (= 2021.06.28.00-v2) - - RCTTypeSafety (= 0.66.1) - - React-Core/RCTSettingsHeaders (= 0.66.1) - - React-jsi (= 0.66.1) - - ReactCommon/turbomodule/core (= 0.66.1) - - React-RCTText (0.66.1): - - React-Core/RCTTextHeaders (= 0.66.1) - - React-RCTVibration (0.66.1): - - FBReactNativeSpec (= 0.66.1) - - RCT-Folly (= 2021.06.28.00-v2) - - React-Core/RCTVibrationHeaders (= 0.66.1) - - React-jsi (= 0.66.1) - - ReactCommon/turbomodule/core (= 0.66.1) - - React-runtimeexecutor (0.66.1): - - React-jsi (= 0.66.1) - - ReactCommon/turbomodule/core (0.66.1): - - DoubleConversion - - glog - - RCT-Folly (= 2021.06.28.00-v2) - - React-callinvoker (= 0.66.1) - - React-Core (= 0.66.1) - - React-cxxreact (= 0.66.1) - - React-jsi (= 0.66.1) - - React-logger (= 0.66.1) - - React-perflogger (= 0.66.1) - - RNCMaskedView (0.1.11): - - React - - RNCPicker (2.1.0): - - React-Core - - RNGestureHandler (1.10.3): - - React-Core - - RNScreens (3.7.2): - - React-Core - - React-RCTImage - - RNSVG (12.1.1): - - React - - Yoga (1.14.0) - - YogaKit (1.18.1): - - Yoga (~> 1.14) - -DEPENDENCIES: - - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) - - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) - - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) - - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) - - Flipper (= 0.99.0) - - Flipper-Boost-iOSX (= 1.76.0.1.11) - - Flipper-DoubleConversion (= 3.1.7) - - Flipper-Fmt (= 7.1.7) - - Flipper-Folly (= 2.6.7) - - Flipper-Glog (= 0.3.6) - - Flipper-PeerTalk (= 0.0.4) - - Flipper-RSocket (= 1.4.3) - - FlipperKit (= 0.99.0) - - FlipperKit/Core (= 0.99.0) - - FlipperKit/CppBridge (= 0.99.0) - - FlipperKit/FBCxxFollyDynamicConvert (= 0.99.0) - - FlipperKit/FBDefines (= 0.99.0) - - FlipperKit/FKPortForwarding (= 0.99.0) - - FlipperKit/FlipperKitHighlightOverlay (= 0.99.0) - - FlipperKit/FlipperKitLayoutPlugin (= 0.99.0) - - FlipperKit/FlipperKitLayoutTextSearchable (= 0.99.0) - - FlipperKit/FlipperKitNetworkPlugin (= 0.99.0) - - FlipperKit/FlipperKitReactPlugin (= 0.99.0) - - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.99.0) - - FlipperKit/SKIOSNetworkPlugin (= 0.99.0) - - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) - - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) - - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) - - React (from `../node_modules/react-native/`) - - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) - - React-Core (from `../node_modules/react-native/`) - - React-Core/DevSupport (from `../node_modules/react-native/`) - - React-Core/RCTWebSocket (from `../node_modules/react-native/`) - - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) - - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) - - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) - - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) - - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) - - React-logger (from `../node_modules/react-native/ReactCommon/logger`) - - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) - - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) - - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) - - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) - - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) - - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) - - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) - - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) - - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) - - React-RCTText (from `../node_modules/react-native/Libraries/Text`) - - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) - - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) - - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) - - "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)" - - "RNCPicker (from `../node_modules/@react-native-picker/picker`)" - - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) - - RNScreens (from `../node_modules/react-native-screens`) - - RNSVG (from `../node_modules/react-native-svg`) - - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) - -SPEC REPOS: - trunk: - - CocoaAsyncSocket - - Flipper - - Flipper-Boost-iOSX - - Flipper-DoubleConversion - - Flipper-Fmt - - Flipper-Folly - - Flipper-Glog - - Flipper-PeerTalk - - Flipper-RSocket - - FlipperKit - - fmt - - libevent - - OpenSSL-Universal - - YogaKit - -EXTERNAL SOURCES: - boost: - :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" - DoubleConversion: - :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" - FBLazyVector: - :path: "../node_modules/react-native/Libraries/FBLazyVector" - FBReactNativeSpec: - :path: "../node_modules/react-native/React/FBReactNativeSpec" - glog: - :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" - RCT-Folly: - :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" - RCTRequired: - :path: "../node_modules/react-native/Libraries/RCTRequired" - RCTTypeSafety: - :path: "../node_modules/react-native/Libraries/TypeSafety" - React: - :path: "../node_modules/react-native/" - React-callinvoker: - :path: "../node_modules/react-native/ReactCommon/callinvoker" - React-Core: - :path: "../node_modules/react-native/" - React-CoreModules: - :path: "../node_modules/react-native/React/CoreModules" - React-cxxreact: - :path: "../node_modules/react-native/ReactCommon/cxxreact" - React-jsi: - :path: "../node_modules/react-native/ReactCommon/jsi" - React-jsiexecutor: - :path: "../node_modules/react-native/ReactCommon/jsiexecutor" - React-jsinspector: - :path: "../node_modules/react-native/ReactCommon/jsinspector" - React-logger: - :path: "../node_modules/react-native/ReactCommon/logger" - react-native-safe-area-context: - :path: "../node_modules/react-native-safe-area-context" - React-perflogger: - :path: "../node_modules/react-native/ReactCommon/reactperflogger" - React-RCTActionSheet: - :path: "../node_modules/react-native/Libraries/ActionSheetIOS" - React-RCTAnimation: - :path: "../node_modules/react-native/Libraries/NativeAnimation" - React-RCTBlob: - :path: "../node_modules/react-native/Libraries/Blob" - React-RCTImage: - :path: "../node_modules/react-native/Libraries/Image" - React-RCTLinking: - :path: "../node_modules/react-native/Libraries/LinkingIOS" - React-RCTNetwork: - :path: "../node_modules/react-native/Libraries/Network" - React-RCTSettings: - :path: "../node_modules/react-native/Libraries/Settings" - React-RCTText: - :path: "../node_modules/react-native/Libraries/Text" - React-RCTVibration: - :path: "../node_modules/react-native/Libraries/Vibration" - React-runtimeexecutor: - :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" - ReactCommon: - :path: "../node_modules/react-native/ReactCommon" - RNCMaskedView: - :path: "../node_modules/@react-native-community/masked-view" - RNCPicker: - :path: "../node_modules/@react-native-picker/picker" - RNGestureHandler: - :path: "../node_modules/react-native-gesture-handler" - RNScreens: - :path: "../node_modules/react-native-screens" - RNSVG: - :path: "../node_modules/react-native-svg" - Yoga: - :path: "../node_modules/react-native/ReactCommon/yoga" - -SPEC CHECKSUMS: - boost: a7c83b31436843459a1961bfd74b96033dc77234 - CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 - DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 - FBLazyVector: 500821d196c3d1bd10e7e828bc93ce075234080f - FBReactNativeSpec: 74c869e2cffa2ffec685cd1bac6788c021da6005 - Flipper: 30e8eeeed6abdc98edaf32af0cda2f198be4b733 - Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c - Flipper-DoubleConversion: 57ffbe81ef95306cc9e69c4aa3aeeeeb58a6a28c - Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b - Flipper-Folly: 83af37379faa69497529e414bd43fbfc7cae259a - Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 - Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 - Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541 - FlipperKit: d8d346844eca5d9120c17d441a2f38596e8ed2b9 - fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 - glog: 5337263514dd6f09803962437687240c5dc39aa4 - libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 - OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b - RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 - RCTRequired: 3cc065b52aa18db729268b9bd78a2feffb4d0f91 - RCTTypeSafety: 3c4fc37d5dea452d2ef17324db5504ec2f05083a - React: 4a00720816c52a213424442954acb7e4b724804a - React-callinvoker: 911fc6570538f3bb5c61edf9dc907c1beb4355bf - React-Core: e134d3a5d7b2a1a731589be776e20dbb14868f27 - React-CoreModules: 2f8588b2aa47e7fef27125c8eaaabda963b3ac62 - React-cxxreact: 8f1382538cad0cc8b8eafca6d66268828e353bea - React-jsi: 9fe1854d2c0486216acebd5db3c38b4ccb23ca0b - React-jsiexecutor: db2f6e22a534d466fc0e34e622df47d9d20bab2f - React-jsinspector: 8c0517dee5e8c70cd6c3066f20213ff7ce54f176 - React-logger: bfddd3418dc1d45b77b822958f3e31422e2c179b - react-native-safe-area-context: 584dc04881deb49474363f3be89e4ca0e854c057 - React-perflogger: fcac6090a80e3d967791b4c7f1b1a017f9d4a398 - React-RCTActionSheet: caf5913d9f9e605f5467206cf9d1caa6d47d7ad6 - React-RCTAnimation: 6539e3bf594f6a529cd861985ba6548286ae1ead - React-RCTBlob: 6e2e999d28b15fd03ed533f164ce33e0fcde571a - React-RCTImage: c6bbb10eedb6b840c4474f2108b864173b83de15 - React-RCTLinking: 8fda9bb8fdb104e78110a903a9a77754318c7d11 - React-RCTNetwork: 2b26daad93830501cf14aab03eac04e304f942d3 - React-RCTSettings: 89c0dcee7adb706c749383596f57c1e882a27843 - React-RCTText: 71734fce8e6cb854daeb4a5eec182c303ea58473 - React-RCTVibration: 6600b5eed7c0fda4a433fa1198d1cb2690151791 - React-runtimeexecutor: 33a949a51bec5f8a3c9e8d8092deb259600d761e - ReactCommon: 620442811dc6f707b4bf5e3b27d4f19c12d5a821 - RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489 - RNCPicker: f7a40b21b915b7a187624d52f52b7bc2f73ea413 - RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211 - RNScreens: 0591543e343c7444ea1756b6265d81a4295922c9 - RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f - Yoga: 2b4a01651f42a32f82e6cef3830a3ba48088237f - YogaKit: f782866e155069a2cca2517aafea43200b01fd5a - -PODFILE CHECKSUM: 9e40c8dc9938bfcba5ab21d127330aacf9ef9ab3 - -COCOAPODS: 1.10.1 diff --git a/example/examples/ios/Podfile.lock b/example/examples/ios/Podfile.lock index ddd522b6a..bfaa1d27d 100644 --- a/example/examples/ios/Podfile.lock +++ b/example/examples/ios/Podfile.lock @@ -341,8 +341,6 @@ PODS: - React-perflogger (= 0.66.1) - RNCMaskedView (0.1.11): - React - - RNCPicker (2.1.0): - - React-Core - RNGestureHandler (2.0.0): - React-Core - RNScreens (3.7.2): @@ -409,7 +407,6 @@ DEPENDENCIES: - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) - "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)" - - "RNCPicker (from `../node_modules/@react-native-picker/picker`)" - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) - RNScreens (from `../node_modules/react-native-screens`) - RNSVG (from `../node_modules/react-native-svg`) @@ -495,8 +492,6 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon" RNCMaskedView: :path: "../node_modules/@react-native-community/masked-view" - RNCPicker: - :path: "../node_modules/@react-native-picker/picker" RNGestureHandler: :path: "../node_modules/react-native-gesture-handler" RNScreens: @@ -551,7 +546,6 @@ SPEC CHECKSUMS: React-runtimeexecutor: 33a949a51bec5f8a3c9e8d8092deb259600d761e ReactCommon: 620442811dc6f707b4bf5e3b27d4f19c12d5a821 RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489 - RNCPicker: f7a40b21b915b7a187624d52f52b7bc2f73ea413 RNGestureHandler: 51c9f32f43720c3a1c7660690a843f33acbcf01f RNScreens: 0591543e343c7444ea1756b6265d81a4295922c9 RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f diff --git a/example/examples/package.json b/example/examples/package.json index e455fb9b7..eac10946b 100644 --- a/example/examples/package.json +++ b/example/examples/package.json @@ -11,7 +11,6 @@ }, "dependencies": { "@react-native-community/masked-view": "0.1.11", - "@react-native-picker/picker": "2.1.0", "@react-navigation/native": "6.0.4", "@react-navigation/stack": "6.0.9", "@uiw/react-native": "3.0.3", diff --git a/example/examples/src/routes.tsx b/example/examples/src/routes.tsx index 30d80c020..c73f15479 100644 --- a/example/examples/src/routes.tsx +++ b/example/examples/src/routes.tsx @@ -198,14 +198,6 @@ export const stackPageData: Routes[] = [ description: '由至少 2 个分段控件组成,用作不同视图的显示。', }, }, - { - name: 'SelectCascader', - component: require('./routes/SelectCascader').default, - params: { - title: 'SelectCascader 级联选择', - description: '可用于类似于省市区选择。', - }, - }, { name: 'Spacing', component: require('./routes/Spacing').default, diff --git a/example/examples/src/routes/DragDrawer/index.tsx b/example/examples/src/routes/DragDrawer/index.tsx index 4aa1694d6..763648281 100644 --- a/example/examples/src/routes/DragDrawer/index.tsx +++ b/example/examples/src/routes/DragDrawer/index.tsx @@ -1,10 +1,10 @@ import React, {useState, Fragment} from 'react'; -import {View, Text, FlatList} from 'react-native'; +import {View, Text, FlatList, ListRenderItemInfo} from 'react-native'; import {DragDrawer, Card, Icon, List} from '@uiw/react-native'; import Layout, {Container} from '../../Layout'; import {ComProps} from '../../routes'; const {Header, Body, Footer} = Layout; -const data = []; +const data: Array = []; for (let i = 1; i < 21; i++) { data.push(i); } @@ -13,8 +13,10 @@ export default function DragDrawerView({route}: DragDrawerViewProps) { const description = route.params.description; const title = route.params.title; - const renderItem = ({item}) => ( - + const renderItem = ({item}: ListRenderItemInfo) => ( + {item} ); @@ -28,7 +30,7 @@ export default function DragDrawerView({route}: DragDrawerViewProps) { item.id} + keyExtractor={item => item + ''} /> diff --git a/example/examples/src/routes/SelectCascader/city.ts b/example/examples/src/routes/SelectCascader/city.ts deleted file mode 100644 index 3100e996a..000000000 --- a/example/examples/src/routes/SelectCascader/city.ts +++ /dev/null @@ -1,82 +0,0 @@ -export default [ - { - label: '北京', - value: '01', - children: [ - { - label: '东城区', - value: '01-1', - }, - { - label: '西城区', - value: '01-2', - }, - { - label: '崇文区', - value: '01-3', - }, - { - label: '宣武区', - value: '01-4', - }, - ], - }, - { - label: '浙江', - value: '02', - children: [ - { - label: '杭州', - value: '02-1', - children: [ - { - label: '西湖区', - value: '02-1-1', - }, - { - label: '上城区', - value: '02-1-2', - }, - { - label: '江干区', - value: '02-1-3', - }, - { - label: '下城区', - value: '02-1-4', - }, - ], - }, - { - label: '宁波', - value: '02-2', - children: [ - { - label: 'xx区', - value: '02-2-1', - }, - { - label: 'yy区', - value: '02-2-2', - }, - ], - }, - { - label: '温州', - value: '02-3', - }, - { - label: '嘉兴', - value: '02-4', - }, - { - label: '湖州', - value: '02-5', - }, - { - label: '绍兴', - value: '02-6', - }, - ], - }, -]; diff --git a/example/examples/src/routes/SelectCascader/index.tsx b/example/examples/src/routes/SelectCascader/index.tsx deleted file mode 100644 index 1eb7a92b7..000000000 --- a/example/examples/src/routes/SelectCascader/index.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import React, {Component} from 'react'; -import {StyleSheet, Text} from 'react-native'; -import Layout, {Container} from '../../Layout'; -import {SelectCascader, SelectCascaderValue, Button} from '@uiw/react-native'; -import {ComProps} from '../../routes'; -import data from './city'; - -const {Header, Body, Card, Footer} = Layout; - -export interface SelectCascaderProps extends ComProps {} - -interface Value { - key: SelectCascaderValue; - city: string; -} -export interface IState { - visible: boolean; - value: Value; -} - -export default class SelectCascaderView extends Component< - SelectCascaderProps, - IState -> { - constructor(props: SelectCascaderProps) { - super(props); - this.state = { - visible: false, - value: { - key: ['02', '02-2', '02-2-2'], - city: '啥也没', - }, - }; - } - - onChange = (val: SelectCascaderValue, label: string) => { - console.log('label--------> change', label); - this.setState({value: {key: val, city: label}}); - }; - - onOk = (val: SelectCascaderValue, label: string) => { - this.setState({visible: false}); - console.log('label--------> ok', label); - this.setState({value: {key: val, city: label}}); - }; - - render() { - const {route} = this.props; - const description = route.params.description; - const title = route.params.title; - const {visible} = this.state; - return ( - - -
- - - {this.state.value.city} - - { - this.setState({visible: false}); - }} - onChange={this.onChange} - visible={visible} - /> - - -