879479119 / react-native-shadow

A SVG shadow component powered with react-native-svg,which can provide shadow on Android like iOS ^_^

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while updating property 'strokeWidth'

rulgf opened this issue · comments

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",

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>

Any tips @rulgf for latest expo?