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

Getting errors while trying to run #77

Closed
HeroSizy opened this issue Sep 4, 2017 · 4 comments
Closed

Getting errors while trying to run #77

HeroSizy opened this issue Sep 4, 2017 · 4 comments

Comments

@HeroSizy
Copy link

HeroSizy commented Sep 4, 2017

jietu20170904-231624

error copied:
import SvgUri from 'react-native-svg-uri';

code:

import SvgUri from 'react-native-svg-uri';

//in Component
renderListItems () {

        const list = [
                {
                    uri: "../image/constant/homer-simpson.svg"
                },
            ]
        ;

        return list.map((l, i) =>
            <ListItem
                key={i}
                title={
                    <SvgUri height="150" width="200" source={require(l.uri)}/>
                }
            />
        );
    }
@matc4
Copy link
Collaborator

matc4 commented Sep 4, 2017

Hello @HeroSizy

If you do:

<SvgUri height="150" width="200" source={require("../image/constant/homer-simpson.svg")}/>

Works?

@arturkasprzyk
Copy link

Hey, got exactly the same problem today on Android emulator ;)

@mhotakai
Copy link

mhotakai commented Oct 4, 2017

The release is not compatible with React 16 because PropTypes has been removed from the react package. That seems to be fixed in the master branch but I ran into other problems...

(Now it works. Had to apply these fixes to react-native-svg@6.0.0-rc1:
software-mansion/react-native-svg#460,
software-mansion/react-native-svg#387)

@lxlneo
Copy link

lxlneo commented Oct 8, 2017

fix the PropTypes ,but another problems

@HeroSizy HeroSizy closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
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

5 participants