Closed codeYard17 closed 1 year ago
I added size in bytes, Kb and Mb but still it is not taking for android 11 for which i currently checked.
Just add size prop inside Documentpicker.pick({allowMultiSelection: true, size: 10485760}) function and it did not work
Describe what you expected to happen: I wanted it to take the file size and not let me select files which are higher than 10Mb.
Android 11
npx react-native info output: info Fetching system and libraries information... System: OS: macOS 13.0 CPU: (8) arm64 Apple M1 Pro Memory: 112.78 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.11.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.19.2 - /opt/homebrew/bin/npm Watchman: 2022.10.24.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0 Android SDK: API Levels: 30, 31, 33 Build Tools: 30.0.2, 30.0.3, 33.0.0 System Images: android-33 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild Languages: Java: 11.0.16.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: ^17.0.2 => 17.0.2 react-native: 0.65.1 => 0.65.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
npx react-native info
# paste it here
library version: x.x.x
iOS / Android version: x.x
Hello, this feature is not implemented, and afaict it is not supported by the underlying native pickers Thank you π
Bug report
Summary
I added size in bytes, Kb and Mb but still it is not taking for android 11 for which i currently checked.
Steps to reproduce
Just add size prop inside Documentpicker.pick({allowMultiSelection: true, size: 10485760}) function and it did not work
Describe what you expected to happen: I wanted it to take the file size and not let me select files which are higher than 10Mb.
Environment info
Android 11
npx react-native info
output: info Fetching system and libraries information... System: OS: macOS 13.0 CPU: (8) arm64 Apple M1 Pro Memory: 112.78 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.11.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.19.2 - /opt/homebrew/bin/npm Watchman: 2022.10.24.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0 Android SDK: API Levels: 30, 31, 33 Build Tools: 30.0.2, 30.0.3, 33.0.0 System Images: android-33 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild Languages: Java: 11.0.16.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: ^17.0.2 => 17.0.2 react-native: 0.65.1 => 0.65.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Foundlibrary version: x.x.x
iOS / Android version: x.x