Skip to content

ReferenceError: Cant't find variable: child #200

Description

@victorbarretodev

hello guys, I have this problem in external and internal images can someone tell me why? note: I installed all libs and settings.

image

import React from 'react';
import {View, Text, Button} from 'react-native';
import PropTypes from 'prop-types';
import SvgUri from 'react-native-svg-uri';
import loginFigure from '../../Assets/Image/loginFigure.svg';
import {title} from '../../Styles/Typography';

export default function SignIn({login}) {
  return (
    <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
      <SvgUri
        width="200"
        height="200"
        source={{
          uri:
            'http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg',
        }}
      />
      <Text style={title}> SignIn </Text>
      <Button title="Login" onPress={() => login()} />
    </View>
  );
}

SignIn.propTypes = {
  login: PropTypes.func.isRequired,
};
  • react-native: "0.62.0"
  • react-native-svg: "^12.0.3"
  • react-native-svg-uri": "^1.2.3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions