Dev tools: Visual Studio Code + Typescript + React-Native
I am trying to init backendless library:
import { Backendless } from 'backendless';
...
Backendless.initApp(APP_ID, APP_KEY, APP_VER);
I get this error:
Cannot read property ‘initApp’ of undefined
I read a couple of similar issues on this forum. At the time these issues where raised, the suggested solution was to wait for a new backendless version where those issues would be addressed. I have the latest version (3.1.22).
Is Backendless compatible with React-Native? If yes how to integrate them?
(Side-note: how about the use of typescript? Is it straight-forward or should I take into account certain things?)
It is absolutely compatible with TypeScript.
Unfortunately we do not have an example of using the JS SDK with React Native yet, but you can find here (click me) example of using it with TypeScript.
Sorry to come back to again. Now I am facing another problem. I have successfully initialized backendless library. But Backendless.UserService is undefined. This is the code