879479119 / react-native-shadow

A SVG shadow component powered with react-native-svg,which can provide shadow on Android like iOS ^_^
MIT License
610 stars 82 forks source link

Error while updating property 'strokeWidth' #21

Closed rulgf closed 7 years ago

rulgf commented 7 years ago

Hi, I´m trying to use this library in my project but found this error:

_20171016_140402

I´m using expo.

Versions:

"react-native": 0.47.1
"react": "16.0.0-alpha.12",
"react-native-shadow": "^1.2.1",
"react-native-svg": "^6.0.0-rc1",
rulgf commented 7 years ago

I found the solution if someone else needed, Expo comes with the react-native-svg preinstalled. But in order to import this library you need to insert

import { Svg } from 'expo';

So to use this library with expo and the preinstalled library of svg you will need to change the imports of the code and replace some of the tags like:

<Path> to <Svg.Path>

Noitidart commented 3 years ago

Any tips @rulgf for latest expo?