I'm attempting to display a preview of the file uploaded by the user, which could be in pdf, img, or doc format. I tried a method that previews the file using a specific URL, but what I really want is for it to only show the preview of the uploaded file itself. Does anyone have any ideas on how to achieve this?
return (
<View style={styles.container}>
<View><StatusBar style="dark" /></View>
<Text>{Constants.manifest.sdkVersion}</Text>
<PDFReader
source={{
uri: 'https://www.solarwinds.com/-/media/solarwinds/appoptics/product-screenshots/ao-infrastructure-monitoring-dashboard.ashx',
}}
webviewProps={{
startInLoadingState: true,
}}
/>
</View>