Load Ammo.js in React Native

Thanks for the response! I am loading ammo.js in React Native the same way that I would if I was doing it for the web. First, yarn add kripken/ammo.js, then use the import statement import * as ammo from 'ammo.js';. Finally, I use the following code block to import it:

const gravityVector = new Vector3(0, -9.81, 0);
const Ammo = await ammo();
const ammoPlugin = new AmmoJSPlugin(true, Ammo);
scene.enablePhysics(gravityVector, ammoPlugin);

This does not work by itself on the web version however, and I have to add fallback: { 'fs': false, 'path': false } to the webpack.config.js. In React Native, there is no way to do this, and I get the error unable to load module fs as I mentioned in this post: Can't load Ammo.js Physics Engine in React Native. Thanks for taking a look!