Closed imhastie closed 4 months ago
ok so, i just do the following steps: https://stackoverflow.com/a/68924679/23599442 any idea how to do it automatically?
so i used this library: https://www.npmjs.com/package/manage-external-storage problem solved.
in my case, users can't pick file themselves. it should be automatically. so, i cannot use file picker or somthing like that. code:
const source = {uri: 'file:///storage/emulated/0/Download/xxxxxx.pdf'};
<Pdf source={source} onLoadComplete={console.log('load completed!!')} onLoadProgress={console.log('loading ...')} onError={error => console.log(error)} page={1} style={styles.pdf} />
manifest contains the following: `
and:
android:requestLegacyExternalStorage="true"
thanks to people who have time to answer.