Installation error of @tensorflow/tfjs-react-native

I followed steps given in official docs of @tensorflow/tfjs-react-native at npmjs.com for bare react native project(without using expo) link:@tensorflow/tfjs-react-native - npm

installation of all the prerequistes and tfjs-react-native was successful but it is throwing this error:
Error: Cannot evaluate flag ‘DEBUG’: no evaluation function found.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

this is code of my app.js file:
<>
import React, { useState, useEffect } from ‘react’;
import * as tf from ‘@tensorflow/tfjs’;
import ‘@tensorflow/tfjs-react-native’;

import {
SafeAreaView,
StatusBar,
StyleSheet,
Text,
View,
} from ‘react-native’;

export default () => {
const [ready, setReady] = useState(false)
useEffect(() => {
const load = async () => {
await tf.ready()
setReady(true)
}
load()
})
return (
<SafeAreaView style={{ backgroundColor: ‘#fff’, flex: 1 }}>
<StatusBar barStyle={‘dark-content’} />

hello


);
};

const styles = StyleSheet.create({

});

</>

any help from your side will be appreciated

I have the same problem, did you solve it?