Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Error after basic setup #94

Open
youssef-md opened this issue Feb 15, 2020 · 1 comment
Open

Error after basic setup #94

youssef-md opened this issue Feb 15, 2020 · 1 comment

Comments

@youssef-md
Copy link

youssef-md commented Feb 15, 2020

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 }`);
});

This error happens:
photo_2020-02-14_23-23-58

React Native version: 0.61.5
Tested phone: Zenfone 4
Android Version: 8.0.0

@laurent22
Copy link

Duplicate of #90

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants