jordanbyron / react-native-quick-actions

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

Feature request: Custom icons #21

Closed superandrew213 closed 8 years ago

superandrew213 commented 8 years ago

It would be good if you could set custom icons. Will look into implementing it soon.

remstos commented 8 years ago

@superandrew213 Actually, you can do it by adding your icons directly to the xcode project Images.xcasset and referecing them by their name:

QuickActions.setShortcutItems([
      { 
        type: 'Notifications', title: 'notifications',
        icon: 'icon-notifications',
        userInfo: { },
      },
     ...
]);
superandrew213 commented 8 years ago

@kemcake awesome! Thanks

alpamys-qanybet commented 5 years ago

@superandrew213, @kemcake, hi there, what about defining in Info.plist statically?

jordanbyron commented 5 years ago

@alpamys-qanybet RTM:

https://github.com/jordanbyron/react-native-quick-actions#adding-static-quick-actions---ios-only