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

box-shadow does not work in react-native #128

Closed
Gustavoohrq opened this issue Dec 3, 2019 · 1 comment
Closed

box-shadow does not work in react-native #128

Gustavoohrq opened this issue Dec 3, 2019 · 1 comment

Comments

@Gustavoohrq
Copy link

I am using React.Native, I put the box-shadow but it does not work at all. I tested other codes but none worked.

` import styled from 'styled-components/native'

        export const Box = styled.View`
            border-radius: 10;
            height: 150;
            width: 300;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);


        `;

        export const Title = styled.Text`

            color: #4b1b5f;
            font-size: 25px;
            font-weight: 900;

        `;

`

@Gustavoohrq Gustavoohrq changed the title box-shadow não funciona no react-native box-shadow does not work in react-native Dec 3, 2019
@quantizor quantizor transferred this issue from styled-components/styled-components Dec 24, 2019
@jacobp100
Copy link
Contributor

jacobp100 commented Dec 24, 2019

You’re doing the right thing in your example. It’ll only work on iOS though, as android doesn’t have support for custom shadows

See #119

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