Open jasonnathan opened 5 years ago
This is a new issue reproduced with a fresh project of react-native and this package.
Packages/Versions
"@gigasz/react-native-sketch-canvas": "^0.8.3", "react": "16.8.6", "react-native": "0.60.5"
Component Code (copied from example in README.md)
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, } from 'react-native'; import { SketchCanvas } from '@gigasz/react-native-sketch-canvas'; export default class example extends Component { render() { return ( <View style={styles.container}> <View style={{ flex: 1, flexDirection: 'row' }}> <SketchCanvas style={{ flex: 1 }} strokeColor={'red'} strokeWidth={7} /> </View> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, });
Error Apparently, UIManager.getViewManagerConfig('RNSketchCanvas').Constants is undefined in Line 258 of SketchCanvas.js.
UIManager.getViewManagerConfig('RNSketchCanvas').Constants
SketchCanvas.js
same issue happened.
This is a new issue reproduced with a fresh project of react-native and this package.
Packages/Versions
Component Code (copied from example in README.md)
Error Apparently,
UIManager.getViewManagerConfig('RNSketchCanvas').Constants
is undefined in Line 258 ofSketchCanvas.js
.