Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Open email application using expo-intent-launcher

$
0
0

I am using expo intent launcher to open email application in android devices (open mail only/not compose email)

https://docs.expo.dev/versions/v43.0.0/sdk/intent-launcher/

and it is working fine using expo-intent-launcher version ~9.1.0,but after upgrading the expo-intent-launcher to version ~10.0.3it does not work anymore. because the parameter is changed.

before upgrading

expo-intent-launcher version ~9.1.0

working version

after upgrading

expo-intent-launcher version ~10.0.3

not working version

Here's the pre defined constant:

ActivityAction: https://github.com/expo/expo/blob/main/packages/expo-intent-launcher/src/IntentLauncher.ts

I got confused how to put this 'android.intent.action.MAIN' to the parameter because it's not listed in the enums and it doesn't accept string.intentlauncher

how can I fix my code so it will work in the newer version?

expo-intent-launcher version ~10.0.3

Any help would be appreciated, Thank you.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>