Add dynamic Android 7 Shortcuts in your react native project.
Warning: This is a Preview Release and still in development.
TODO
class MyApp extends Component {
render() {
return (
<View>
<AppShortcutsAndroid
id="google"
shortLabel="Search in Google"
longLabel="Search anything in Google"
uri="http://google.com"
/>
<AppShortcutsAndroid
id="bing"
shortLabel="Search in Bing"
longLabel="Search anything in Bing"
uri="http://bing.com"
/>
<Text>Hello World :P</Text>
</View>
);
}
}
- Improve code and make it testable
- Support icon
- Apply guideliness by android (Shortcut Best Practices)
- Add support to disable and enable shortcuts
- Add support to update shortcuts