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

reported a percent.match error, I don't know why #35

Closed
Fuyun791 opened this issue Jan 26, 2022 · 5 comments
Closed

reported a percent.match error, I don't know why #35

Fuyun791 opened this issue Jan 26, 2022 · 5 comments

Comments

@Fuyun791
Copy link

image

Step appears
After installation, this problem occurs directly when I write an example in a readme. My package.json is "react-native-shadow-2": "^6.0.1"

@SrBrahma
Copy link
Owner

SrBrahma commented Jan 26, 2022

What do you mean by "this problem occurs directly when I write an example in a readme"?

Please share here the exact code you are using.

What react-native-svg version are you using? And, double check that you fully followed its installation instructions.

@Fuyun791
Copy link
Author

package.json
"react-native-shadow-2": "^6.0.1",
"react-native-svg": "5.5.1",

code:
<Shadow distance={15} startColor={'#eb9066d8'} finalColor={'#ff00ff10'} offset={[3, 4]}> <View style={{ borderTopLeftRadius: 24, borderBottomRightRadius: 0, borderRadius: 10, backgroundColor: '#c454f0dd', }} > <TYText style={{ margin: 20, fontSize: 20 }}>🤯</TYText> </View> </Shadow>

@SrBrahma
Copy link
Owner

This react-native-svg version is too old. Please, use the latest one, the v12.

@Fuyun791
Copy link
Author

Might really be a problem with svg. But I can't upgrade my svg version, sad. Because another package of mine depends on an older version. I can't register both. It seems that I can only use the old react-native-shadow, 😢

@SrBrahma
Copy link
Owner

I see. Unfortunately can't help you further, the react-native-svg@5.5.1 is more than 4 years old 😬

I recommend to use a similar package to the one requiring this old version, if there is one.

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