react-nativeexpo

Error: Exception in HostFunction: Unable to convert string to floating point value: "large"


My project was running successfully on expo 51 but after upgrading my expo sdk from 51 to 52 my project is giving me {Exception in HostFunction: Unable to convert string to floating point value: "large"} error on mobiles(Ios and android). However it is running on local web. I searched the text large in my project and i am not using large at any place.

Anyone knows how to solve this issue ?


Solution

  • I had exactly the same problem and managed to solve it by adding the property below to the app.json file:

    "newArchEnabled": true,
    

    and I ran the commands below:

    npx expo-doctor
    

    then

    npx expo install --check
    

    The last command will basically analyze the possible errors in your project and at the end it will ask if you want to solve them automatically, just press the Y key and all the errors will be solved.

    This worked for me, I hope it helps others.