Open geetee24 opened 1 week ago
you can use the disabled
option like this
useShareIntent({ disabled: Platform.OS === 'web' })
the import of your lib is failing to load when is web :(
look at this issue to handle dynamic import https://github.com/achorein/expo-share-intent/issues/23
import { useShareIntent } from 'expo-share-intent';
your link does not provide a solution to the import issue on web device
The first comment give a solution for expo go client when in development, is the same for web client.
you can do something like this
let useShareIntent = () => { return {} }
if (Platform.OS !== 'web') {
// do not use import at top of file
const ESI = require('expo-share-intent')
useShareIntent = ESI.useShareIntent;
}
how make it not load when running in web?