has anyone had luck using the near-api-js
on react native / expo? I'm trying to import the library & I'm running into the following error:
Failed building JavaScript bundle.
Unable to resolve module ../../App from /Users/sasha/Nextwork/nextwork/node_modules/expo/AppEntry.js:
None of these files exist:
* App(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
* App/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
1 | import registerRootComponent from 'expo/build/launch/registerRootComponent';
2 |
> 3 | import App from '../../App';
| ^
4 |
5 | registerRootComponent(App);
6 |
if I remove the near-api-js import the app loads again
followed the steps in here:
https://docs.near.org/docs/api/naj-quick-reference, as well as the wallet examples