After upgrading my react native app to version 0.59.8 i made it work on android but when trying to build it and run in on ios it shows me this error :
node_modules/react-native/node_modules/@react-native-community/cli/build/cliEntry.js:168
async function run() {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous>
Even when doing react-native info or react-native start or react-native run-ios , it shows the same error , Do you Know please what does it mean this error ?