Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.02 KB

File metadata and controls

46 lines (35 loc) · 1.02 KB

[Discutinied] React Native Android Appshortcuts

Add dynamic Android 7 Shortcuts in your react native project.

Warning: This is a Preview Release and still in development.

Installing

TODO

Example

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

Todo

  • 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