Unhandled JS Exception: undefined is not a function

Please provide the following:

  1. SDK Version: 46
  2. Platforms(Android/iOS/web/all): IOS
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Hi, my App:

SDK 46
Managed Workflow

When i run eas build -p ios, the build keeps failing with error message minimum deployment verion while installing pods and the path to my expo-fie-system inside node modules.

When i opened the ios file inside the expo-file-system i found this:

s.platform = :ios, ‘13.0’

Since expo SDK 46 minimum deployment is 12.4, my 2 options are

  1. upgrade to sdk 47
  2. add ios deployment target of 13.0 in my app.config.js

I went with option 2 then my app stopped working completely and got this error:

Unhandled JS Exception: undefined is not a function (near ‘…_$$_REQUIRE(_dependencyMap[0], “react-native/Libraries/Image/AssetRegistry”).registerAsset…’)

@http://192.168.1.2:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:1104:110
loadModuleImplementation@http://192.168.1.2:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:229:14
@http://192.168.1.2:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:1093:31
loadModuleImplementation@http://192.168.1.2:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:229:14
guardedLoadModule@http://192.168.1.2:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:130:47
global code@http://192.168.1.2:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:1114:4

loadModuleImplementation
AppEntry.bundle?platform=ios&dev=true&hot=false:229:14
loadModuleImplementation
AppEntry.bundle?platform=ios&dev=true&hot=false:229:14
guardedLoadModule
AppEntry.bundle?platform=ios&dev=true&hot=false:130:47
global code
AppEntry.bundle?platform=ios&dev=true&hot=false:1114:4