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.





