React-native-ui-kitten: Kitten UI Network Gallery

Created on 29 Sep 2018  路  4Comments  路  Source: akveo/react-native-ui-kitten

  • [ ] bug report
  • [X] feature request

Issue description

Current behavior:
So there is no way to do it right now. If nobody knows the answer.

https://stackoverflow.com/questions/52525212/kitten-ui-network-gallery

Help wanted

All 4 comments

Hi @ugurozturk ,

Looks like you already have this ability :)
If you look through sources, you should see, that RkGallery items are RkGalleryImage.
When you pass array of items to RkGallery, it translates it one-by-one into each RkGalleryImage through the source prop. This prop works the same way as it does plain react-native Image component.
So you can use it like this:

<RkGallery items={[
  {uri: 'https://path-to/my-awesome-pic-0.jpg'},
  {uri: 'https://path-to/my-awesome-pic-1.jpg'},
]} />

Thank you :)

kittenui

You might want to look into it @artyorsh

@ugurozturk
No need in use React components as array items. Just [{ uri: 'https://...' }, ... ], as I described above

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iosdev-republicofapps picture iosdev-republicofapps  路  3Comments

domsterthebot picture domsterthebot  路  3Comments

nonameolsson picture nonameolsson  路  3Comments

bkwhite picture bkwhite  路  3Comments

chamatt picture chamatt  路  3Comments