react-native-component / react-native-smart-sortable-sudoku-grid

A smart sortable sudoku grid for React Native apps
MIT License
107 stars 42 forks source link

errors on executing the example code provided #22

Open Thanmai-C opened 7 years ago

Thanmai-C commented 7 years ago

I tried executing the same example code you have provided, but when i click on the manage text to sort it throws me an error stating "undefined is not an object (evaluating 'newState.containerHeight = this.createHeight(nextProps)".

I dismiss the error and go forward to click on the "-" icon to delete the item it gives me an error: "null is not an object (evaluating 'this._candidateSudokuGrid.addCell').

I dismiss this also and go forward to click on complete to go save, it gives me an error: " null is not an object(evaluating '_this._candidateSudokuGrid.getSortedDataSource').

Please help resolving these issues at the earliest.

suhabaobaid commented 6 years ago

@Thanmai-C I have just encountered these issues. I have fixed it with the following: change import { PropTypes } from 'react' => import PropTypes from 'prop-types' in the node_modules file that gives error. It should work fine then. This is because PropTypes in react is has been moved to this new library link: https://reactjs.org/docs/typechecking-with-proptypes.html

mengbimao commented 5 years ago

@suhabaobaid 我遇到了类似的错误,但是我不知道该如何解决,作者也不理我,我遇到了这个错误 undefined is not an object (evaluating'_react.Proptypes.number'),希望大神能帮我解答一下,谢谢