Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display image at two column timeline #26

Open
poowl opened this issue Jun 4, 2020 · 1 comment
Open

Display image at two column timeline #26

poowl opened this issue Jun 4, 2020 · 1 comment

Comments

@poowl
Copy link

poowl commented Jun 4, 2020

Hello!

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

thanks!

@Eugnis
Copy link
Owner

Eugnis commented Jul 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants