I'm trying to create an ExpoPixi.Sketch View in React Native, but an error, 'Cannot read property 'viewManagersNames' of undefined'
shows when the App loads. I cannot find anything on this error online.
import React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { Provider } from 'react-redux';
import EStyleSheet from 'react-native-extended-stylesheet';
import ExpoPixi from 'expo-pixi';
import { Constants } from 'expo';
export default class App extends React.Component {
render() {
const color = 0xff0000;
const width = 5;
const alpha = 0.5;
return (
<View style={styles.container}>
<ExpoPixi.Sketch
strokeColor={color}
strokeWidth={width}
strokeAlpha={alpha}
style={{ flex: 1 }}
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: Constants.statusBarHeight,
backgroundColor: 'green',
}
});
I tried this same code in another new React Native project, and it works fine, creating a screen where the user can draw using their finger.
This also shows up in the console, but I am using expo so I don't think I can use react-native link.
*No native NativeModulesProxy found among NativeModules, are you sure the expo-react-native-adapter's modules are linked properly
How can I resolve this error?