react-native-sketch-view icon indicating copy to clipboard operation
react-native-sketch-view copied to clipboard

Undefined is not an object .... number

Open yooouuri opened this issue 7 years ago • 5 comments

image

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

image

Took the example code from the README.

yooouuri avatar Oct 12 '17 14:10 yooouuri

Same issue ..

Alexandre-cibot avatar Nov 03 '17 11:11 Alexandre-cibot

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

yooouuri avatar Nov 03 '17 11:11 yooouuri

Perfect, thanks @yooouuri

Alexandre-cibot avatar Nov 03 '17 11:11 Alexandre-cibot

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

assurancetourix avatar Dec 01 '17 00:12 assurancetourix

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

clarksandholtz avatar Dec 08 '17 16:12 clarksandholtz