Hello @DaddyGG !
Welcome to MetaMask community !
This is not a problem with MetaMask, but with the React Native build.
From what I found from open sources, it may be useful to you:
MetroJS bundler default not compile typescript .ts and .tsx extension files. We need tell MetroJS bundler to compile .ts and .tsx files i solved this error by edit metro.config.js file in root project folder by following.
Added cjx and json extensions to below snippet
All extensions listed below not required it’s depend on what language you choose javascript or typescript, and your dependencies
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
resolver: {
sourceExts: ['jsx', 'js', 'ts', 'tsx', 'cjs', 'json'] //add here
},
};