After installing react-native-quick-actions, linking it and adding the example from the README:
QuickActions.setShortcutItems([
{
type: 'Orders', // Required
title: 'See your orders', // Optional, if empty, `type` will be used instead
subtitle: 'See orders',
icon: 'Contact', // Icons instructions below
userInfo: {
props: 'foo bar' // Provide any custom data like deep linking URL
}
}
]);
DeviceEventEmitter.addListener('quickActionsShortcut', data => {
console.log(`QUICK ACTION: ${ data }`);
});
QuickActions.popInitialAction().then(data => {
console.log(`QUICK ACTION: ${ data }`);
});
After installing react-native-quick-actions, linking it and adding the example from the README:
This error happens:
React Native version: 0.61.5 Tested phone: Zenfone 4 Android Version: 8.0.0