Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NaiveModule: AsyncStorage is NULL #1190

Open
1 of 5 tasks
jamshidGhiasi opened this issue Mar 4, 2025 · 3 comments
Open
1 of 5 tasks

NaiveModule: AsyncStorage is NULL #1190

jamshidGhiasi opened this issue Mar 4, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@jamshidGhiasi
Copy link

What happened?

Hi

My stack is Expo, ReactNative, Firebase Auth, Google Sign In

I have tried all the solutions out there but can not get past the AsyncStorage is NULL issue.

Can someone please help me.

Thanks

Version

1.23.1

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

System:
  OS: macOS 15.3.1
  CPU: (12) arm64 Apple M3 Pro
  Memory: 1.86 GB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.17.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.22
    path: /usr/local/bin/yarn
  npm:
    version: 11.0.0
    path: /usr/local/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.3
    wanted: latest
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.3
    wanted: 0.76.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Steps to Reproduce

import { initializeApp, FirebaseApp, } from 'firebase/app';
import { getAuth , Auth, initializeAuth, getReactNativePersistence} from 'firebase/auth'
import AsyncStorage from '@react-native-async-storage/async-storage'

const firebaseConfig = {
////
};

export const app = initializeApp(firebaseConfig);
export const auth = initializeAuth(app, {
persistence: getReactNativePersistence(AsyncStorage)
})

@jamshidGhiasi jamshidGhiasi added the bug Something isn't working label Mar 4, 2025
@skjortan23
Copy link

same issue.

@jstr
Copy link

jstr commented Mar 17, 2025

I had the same issue with Expo.

Running the following fixed it for me

npx expo prebuild --clean

@yzydxlp
Copy link

yzydxlp commented Mar 18, 2025

same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants