keshavkaul / react-native-sketch-view

A React Native component for touch based drawing supporting iOS and Android.
MIT License
99 stars 47 forks source link

Undefined is not an object .... number #21

Open yooouuri opened 7 years ago

yooouuri commented 7 years ago

image

npm install react-native-sketch-view --save react-native link react-native-sketch-view

image

Took the example code from the README.

Alexandre-cibot commented 6 years ago

Same issue ..

yooouuri commented 6 years ago

@Alexandre-cibot please use my fork until the maintainer decides to merge my PR

Alexandre-cibot commented 6 years ago

Perfect, thanks @yooouuri

assurancetourix commented 6 years ago

Fixed with

npm install --save prop-types

Then in node_modules/react-native-sketch-view/index.js Change

import React, { PropTypes, Component } from 'react';

to

import React, { Component } from 'react';
import PropTypes from 'prop-types';

Yooouuri's commit reference: https://github.com/keshavkaul/react-native-sketch-view/pull/22/commits/931a03f5ea14afad4d6f6b7e9da4cfdada2c2646

clarksandholtz commented 6 years ago

@keshavkaul any word on when this PR will get merged?