Jimmy Morales
Jimmy Morales

Reputation: 1

How to add App Shortcuts into React Native project

I've been seen on Android we have something like this: React Native App Shortcuts

So, I was wondering if I could do something like that in react native cli, no expo.

Upvotes: 0

Views: 2433

Answers (2)

Asad
Asad

Reputation: 573

If your app targets Android 7.1 (API level 25) or higher, you can define shortcuts to specific actions in your app. These shortcuts can be displayed in a supported launcher. Shortcuts let your users quickly start common or recommended tasks within your app.

npm install react-native-app-shortcuts --save

Here is link

Upvotes: 0

user10849137
user10849137

Reputation: 1

Hey you can install Android shortcut in React Native. Try $ npm install react-native-app-shortcuts --save $ react-native link react-native-app-shortcuts

and then import the package: import RNAppShortcuts from 'react-native-app-shortcuts';

Upvotes: 0

Related Questions