jordanbyron / react-native-quick-actions

A react-native interface for Touch 3D home screen quick actions
MIT License
1.06k stars 93 forks source link

Error after basic setup #94

Open youssef-md opened 4 years ago

youssef-md commented 4 years ago

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 commented 4 years ago

Duplicate of https://github.com/jordanbyron/react-native-quick-actions/issues/90