How can i apply buttom inner shadow like this image in react native? Buttom inner shadow
Asked
Active
Viewed 366 times
2 Answers
0
I think you refer to a radial-gradient applied on the background of the element.
Button {
background: radial-gradient(rgba(0,0,0,0), black);
}
There are options to manipulate the same gradient with % porcentages in order to get a thiner effect or thicker effect

Jose Javier Sanahuja
- 114
- 6
-
Hi Jose, it's a little bit complicated for me. my code is like this ```
0
Ok. I cant add comments so i am going with another idea. BUT this wont work if you have to click.
.container {
position: relative;
}
.container::after {
Position:absolute;
Inset:0;
Content:'';
Background: radial-gradient(rgba(0,0,0,0), black);
z-index: 1;
}
This trick will make a cover box that can add a filter style. But if you have to click something, we need to go further than this.

Jose Javier Sanahuja
- 114
- 6