You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I'm sorry my English skills are not good.)
I looked at the example and made the code exactly as it was. But it doesn't work.
let result = await DocumentPicker.getDocumentAsync({
type:'*/*',
copyToCacheDirectory: false,
});
//const uri = FileSystem.documentDirectory+result.assets[0].name;
setSrc(result.assets[0].uri);
I think setSrc(result.assets[0].uri); is not correct.
What should I do?
(uri returns content://com.android.externalstorage.documents/document/primary%3ADownload%2Ffailing-forward%20(1).epub)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
(I'm sorry my English skills are not good.)
I looked at the example and made the code exactly as it was. But it doesn't work.
I think
setSrc(result.assets[0].uri);
is not correct.What should I do?
(uri returns
content://com.android.externalstorage.documents/document/primary%3ADownload%2Ffailing-forward%20(1).epub
)thank you for your response.
Beta Was this translation helpful? Give feedback.
All reactions