hi. i am trying to connect react native app with MetaMask sdk following instructions https ://docs .MetaMask .io/wallet/how-to/use-sdk/react-native/ and i am getting this error when i test app 
then i load the attached example and it gives the same error. 
             
            
               
               
               
            
            
           
          
            
            
              Hello @nvsh3820  ! 
Welcome to MetaMask community !
Please see this discussion, try these steps, maybe it will solve your problem:
  
  
    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ββ¦
   
 
I also want to ask if you opened an issue in the official MetaMask repository on Github?
             
            
               
               
              3 Likes 
            
            
           
          
            
              
                system  
                
                  Closed 
               
              
                  
                    June 24, 2023, 11:47am
                   
                   
              3 
               
             
            
              This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.