I am trying to run my react native app on my device .
So I am running react-native start
everything looks fine.

and when running react-native run-android I get this error

otherwise, I get this error in my device
I am trying to run my react native app on my device .
So I am running react-native start
everything looks fine.

and when running react-native run-android I get this error

otherwise, I get this error in my device
My issue was the name I gave the project differed from the name that was being registered in AppRegistry
AppRegistry.registerComponent('proj', () => proj)
proj needs to be the same as the name of the project in the gradle and config files.
You need to export the class. Use the code below
import React, { Component } from 'react'
import { AppRegistry, Text, View } from 'react-native'
export default class proj extends Component {
render() {
return (
<View style={styles.container}> <Text > Welcome to PutainDeBiere! </Text> </View> )
}
}
AppRegistry.registerComponent('proj', () => proj)
Delete / uninstall first the APP installed and then do a clean install of it and see if it works.