Iām create new project react native with library of React Moralis but I canāt use it. I come with these errors
ReferenceError: Canāt find variable: Intl
Error: Requiring module ānode_modules/react-moralis/lib/index.cjs.jsā, which threw an exception: ReferenceError: Canāt find variable: Intl
TypeError: undefined is not an object (evaluating ā_$$_REQUIRE(_dependencyMap[4], āreact-moralisā).MoralisProviderā)
TypeError: undefined is not an object (evaluating ā_$$_REQUIRE(_dependencyMap[4], āreact-moralisā).MoralisProviderā)
import Moralis from 'moralis/react-native';
import {MoralisProvider, useMoralis} from 'react-moralis';
import AAA from './aaa';
const App = () => {
const getMoralis = () => Moralis;
return (
<MoralisProvider
appId="sGtoVj9CJfyowttoXMDrpL2NuRFMuQG2pSQnaaGW"
serverUrl="https://omsrg1q2uwkw.usemoralis.com:2053/server"
environment="native"
getMoralis={getMoralis}>
<AAA />
</MoralisProvider>
);
};
I havenāt coded anything yet
Can any one help me?
Update: This is my package.json
"dependencies": {
"event-emitter": "^0.3.5",
"events": "^3.3.0",
"https-browserify": "^1.0.0",
"moralis": "^1.5.8",
"parse": "^3.4.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-moralis": "^1.3.5",
"react-native": "0.68.0",
"web3": "^1.7.1"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.6.3",
"eslint": "^7.32.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.67.0",
"react-test-renderer": "17.0.2",
"typescript": "~4.0.0"
},