bberak / react-native-game-engine-handbook

A React Native app showcasing some examples using react-native-game-engine 🐒✨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Operator 'abs' not found

sheminusminus opened this issue · comments

Currently, on a fresh clone, there's an error on initial launch, Operator 'abs' not found.

Running:

  • macOS Catalina 10.15.5
  • Expo 4.0.13
  • iOS 13.4.1
  • iPhone X

It looks like it might be some issue with the code here, and the underlying native modules, but I'm not totally sure. Here's the screenshot:

IMG_5323

Update: I was able to fix this by updating to the following package versions:

"expo": "40.0.0",
"expo-camera": "9.1.0",
"expo-gl": "9.2.0",
"expo-linear-gradient": "8.4.0",
...
"react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz",

(I'm not sure if the camera, gl, or gradient packages were necessary to update at all, but in my own personal experience, when updating one expo thing, it's usually better to update all the expo things, so ¯\_(ツ)_/¯ )

Hmmm how odd @sheminusminus - I merged a small PR about two weeks ago and tested via a fresh clone..

Thanks for the bug report and fix.. I'll try to updgrade to Expo SDK 40 and apply the updates you listed (totally agree, probably easiest to be liberal with the updates).

Thanks again!

I've just updated the app to use Expo SDK 42 and can confirm that it is running on both Android and iOS. Please feel free to re-open this issue if necessary, cheers!