Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6581

The method `getReactNativePersistence` doesn't seem to exist in the latest firebase libraries

$
0
0

I've been using firebase auth in my react-native app. There is this method getReactNativePersistence that I have been using to persist login sessions.

This is what I had to add to my tsconfig.json file before to get it working. The path "./node_modules/@firebase/auth/dist/index.rn.d.ts" had to be added under @firebase/auth as you can see below.

{"extends": "expo/tsconfig.base","compilerOptions": {"strict": true,"jsx": "react-jsx","baseUrl": ".","moduleResolution": "bundler","allowImportingTsExtensions": true,"module": "esnext","paths": {"~/*": ["src/*"],"@firebase/auth": ["./node_modules/@firebase/auth/dist/index.rn.d.ts"      ]    }  }}

This was the work around that worked before. It doesn't work with the latest versions of firebase. It says the method doesn't exist anymore.


Viewing all articles
Browse latest Browse all 6581

Latest Images

Trending Articles



Latest Images