react-native-timeline-flatlist icon indicating copy to clipboard operation
react-native-timeline-flatlist copied to clipboard

Display image at two column timeline

Open poowl opened this issue 4 years ago • 1 comments

Hello!

Is it possible to display an image at two column timelines? For example on the left or right free space

thanks!

poowl avatar Jun 04 '20 11:06 poowl

Sorry for long time answer. Sure, you can display image on free spaces. There are 2 options to do that:

  • Custom render for time in Timeline component renderTime={()=><Image source={}/>}

  • Or put image component as time on data like that: { time: <Image source={require('../img/lunch.png')}/>, title: 'Go to Fitness center', description: 'Look out for the Best Gym & Fitness Centers around me :)', icon: require('../img/dumbbell.png'), imageUrl: 'https://cloud.githubusercontent.com/assets/21040043/24240422/20d84f6c-0fe4-11e7-8f1d-9dbc594d0cfa.jpg' } Снимок экрана 2020-07-05 в 01 58 47

Eugnis avatar Jul 04 '20 22:07 Eugnis