A
A
Andrey Okhotnikov2018-11-22 16:51:52
css
Andrey Okhotnikov, 2018-11-22 16:51:52

How to color a day on a calendar?

I'm using https://github.com/wix/react-native-calendars (React native calendars)
I need to make some days have a colorful background. For example half blue half green.
How to implement it? In customstyles, you can set a color, but only one, there will be no gradient.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya Beloborodov, 2015-11-24
@qo_0p

I screwed up with the class names, but here is
https://jsfiddle.net/zy3v2ght/2/

N
Nicholas, 2015-11-24
@healqq

Set a vertical stick through position:absolute and an offset from the left edge. And I think it's clear how to calculate the offset. I think this is the simplest and most logical option.

D
Dimka Reactive, 2018-11-22
@raoffonom

Fork the repository and create your own styles as you wish.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question