react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 441 forks source link

Error: Warning: previous promise did not settle and was overwritten #501

Closed theartofnonso closed 2 years ago

theartofnonso commented 2 years ago

[Error: Warning: previous promise did not settle and was overwritten. You've called "pick" while "pick" was already in progress and has not completed yet.]

const pickVideo = async () => {
    closeModal();
    try {
      const result = await DocumentPicker.pickSingle({
        type: [DocumentPicker.types.video],
      });
      console.log(result);
    } catch (err) {
      console.log(err);
    }
    // navigation.navigate(constants.navigation.screens.FITS_CREATE_SCREEN, {
    //   uri: result.uri,
    // });
  };
System:
    OS: macOS 12.0.1
    CPU: (8) arm64 Apple M1
    Memory: 106.41 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 17.0.1 - /opt/homebrew/bin/node
    Yarn: Not Found
    npm: 8.1.2 - ~/.npm-global/bin/npm
    Watchman: 2021.11.15.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
  Languages:
    Java: 16.0.2 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.66.3 => 0.66.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

library version: 7.1.1

iOS version: iPhone 13 (iOS 15.0) Simulator