You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. #921
Labels
stale
There has been a lack of activity on this issue and it may be closed soon.
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check your code at registerRootComponent.js:35.
in ExpoRootComponent (at renderApplication.js:33)
in RCTView (at View.js:60)
in View (at AppContainer.js:102)
in RCTView (at View.js:60)
in View (at AppContainer.js:122)
in AppContainer (at renderApplication.js:32)
My Code is:
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
PixelRatio,
TouchableOpacity,
Image,
} from 'react-native';
import ImagePicker from 'react-native-image-picker';
class ImagePickerProject extends React.Component {
}
const styles = StyleSheet.create({
});
AppRegistry.registerComponent('ImagePickerProject', () => ImagePickerProject);
The text was updated successfully, but these errors were encountered: