react-native-documents / document-picker

Document Picker for React Native

Home Page:https://react-native-documents.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

back button issue

ahmadanshori opened this issue · comments

Bug report

com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String

Summary

i get an error when back button is pressed

video_2023-06-02_10-19-37.mp4

Reproducible sample code

const openDocument = async () => {
    setVisibleCamera(false);
    try {
      const res = await DocumentPicker.pickSingle();
      setDocumentData(res);
      setIsDocument(true);
    } catch (err) {
      Toast.show(err);
    }
  };

Environment info

package.json

  "dependencies": {
    "@bam.tech/react-native-image-resizer": "^3.0.5",
    "@notifee/react-native": "^7.5.0",
    "@react-native-async-storage/async-storage": "^1.17.11",
    "@react-native-clipboard/clipboard": "^1.11.1",
    "@react-native-community/blur": "^4.3.0",
    "@react-native-firebase/app": "^16.7.0",
    "@react-native-firebase/crashlytics": "^17.5.0",
    "@react-native-firebase/messaging": "^16.7.0",
    "@react-native-masked-view/masked-view": "^0.2.9",
    "@react-native-picker/picker": "^2.4.8",
    "@react-navigation/bottom-tabs": "^6.5.4",
    "@react-navigation/material-top-tabs": "^6.5.2",
    "@react-navigation/native": "^6.1.3",
    "@react-navigation/native-stack": "^6.9.9",
    "axios": "^1.3.5",
    "i18next": "^22.4.9",
    "lodash": "^4.17.21",
    "mobx": "^6.9.0",
    "mobx-react": "^7.6.0",
    "mobx-state-tree": "^5.1.8",
    "moment": "^2.29.4",
    "prop-types": "^15.8.1",
    "qs": "^6.11.0",
    "react": "18.1.0",
    "react-i18next": "^12.1.4",
    "react-native": "0.70.9",
    "react-native-agora": "3.7.1",
    "react-native-audio-recorder-player": "^3.5.3",
    "react-native-calendar-strip": "^2.2.6",
    "react-native-code-push": "^7.0.5",
    "react-native-compressor": "^1.6.1",
    "react-native-contacts": "^7.0.5",
    "react-native-create-thumbnail": "^1.6.4",
    "react-native-currency-input": "^1.1.0",
    "react-native-date-picker": "^4.2.6",
    "react-native-debounce-input": "^1.0.5",
    "react-native-document-picker": "^9.0.1",
    "react-native-fast-image": "^8.6.3",
    "react-native-fs": "^2.20.0",
    "react-native-geolocation-service": "^5.3.1",
    "react-native-gesture-bottom-sheet": "^1.1.0",
    "react-native-gesture-handler": "^2.9.0",
    "react-native-gifted-chat": "2.0.1",
    "react-native-google-places-autocomplete": "^2.5.1",
    "react-native-image-modal": "^2.0.4",
    "react-native-image-picker": "^5.0.1",
    "react-native-image-zoom-viewer": "^3.0.1",
    "react-native-linear-gradient": "^2.6.2",
    "react-native-localize": "^2.2.4",
    "react-native-maps": "^1.3.2",
    "react-native-modal": "^13.0.1",
    "react-native-modalbox": "^2.0.2",
    "react-native-pager-view": "^6.1.2",
    "react-native-paper": "^5.2.0",
    "react-native-parsed-text": "^0.0.22",
    "react-native-permissions": "^3.6.1",
    "react-native-progress": "^5.0.0",
    "react-native-qrcode-svg": "^6.1.2",
    "react-native-ratings": "^8.1.0",
    "react-native-raw-bottom-sheet": "^2.2.0",
    "react-native-reanimated": "^2.14.4",
    "react-native-responsive-screen": "^1.4.2",
    "react-native-safe-area-context": "^4.5.0",
    "react-native-screens": "^3.19.0",
    "react-native-share": "^8.2.2",
    "react-native-simple-toast": "1.1.4",
    "react-native-size-matters": "^0.4.0",
    "react-native-skeleton-placeholder": "^5.2.4",
    "react-native-sound": "^0.11.2",
    "react-native-splash-screen": "^3.3.0",
    "react-native-static-safe-area-insets": "^2.2.0",
    "react-native-svg": "^13.7.0",
    "react-native-swipe-gestures": "^1.0.5",
    "react-native-tab-view": "^3.3.4",
    "react-native-vector-icons": "^9.2.0",
    "react-native-version-check": "^3.4.7",
    "react-native-video": "^5.2.1",
    "react-native-video-player": "^0.14.0",
    "react-native-view-pdf": "^0.14.0",
    "react-native-vision-camera": "^2.15.4",
    "react-native-webview": "^11.26.0",
    "realm": "11.3.1",
    "rn-fetch-blob": "^0.12.0",
    "socket.io-client": "^4.6.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "babel-plugin-module-resolver": "^5.0.0",
    "deprecated-react-native-prop-types": "^4.0.0",
    "eslint": "^7.32.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "0.72.3",
    "react-native-svg-transformer": "^1.0.0",
    "react-test-renderer": "18.1.0"
  },

library version: 9.0.1

Android version: 13