react-native-intent-launcher
call native function startActivity
in react-native
Description
You can call native function startActivity
in react-native to do something with Intent
which can only be solved with android native code
Installation
npm install react-native-intent-launcher
react-native link react-native-intent-launcher
Usage
...IntentLauncher // check if app is installed by package nameIntentLauncher ; // open another app by package nameIntentLauncher ;...
Properties
action
Stringdata
Stringcategory
Stringflags
Stringextra
ObjectpackageName
StringclassName
Stringflags
Number
In the IntentConstant
, we provide some constants for these properties, you can look up document provided by google to find out property we didn't support currently.
License
MIT