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

[Android / RN 0.73.9] error: cannot find symbol getReactApplicationContext() #21

Closed
adammcarth opened this issue Aug 14, 2024 · 3 comments · Fixed by #24
Closed

[Android / RN 0.73.9] error: cannot find symbol getReactApplicationContext() #21

adammcarth opened this issue Aug 14, 2024 · 3 comments · Fixed by #24
Labels
Impact: Bug Something isn't working

Comments

@adammcarth
Copy link

Describe the bug
Android Studio throws and error when compiling the app in debug mode using React Native 0.73.9:

/.../node_modules/@d11/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java:125: error: cannot find symbol
                ReactContext context = getReactApplicationContext();
                                       ^
  symbol:   method getReactApplicationContext()
  location: class FastImageViewManager

To Reproduce

  1. npx react-native@0.73.9 init AwesomeProject --version 0.73.9
  2. yarn add @d11/react-native-fast-image
  3. Open project in Android studio and try to build the app

Expected behavior
The app to compile without any errors.

Dependency versions

  • React Native version: 0.73.9
  • React version: 18.2.0
  • React Native Fast Image version: ^8.6.9
@adammcarth adammcarth added the Impact: Bug Something isn't working label Aug 14, 2024
@adammcarth
Copy link
Author

May be related to #13 or supporting Android more broadly.

@deepanshushuklad11
Copy link
Contributor

@adammcarth can you try the nightly build

@adammcarth
Copy link
Author

Thanks @deepanshushuklad11, the latest nightly build (8.6.9-nightly-2024.8.18-18.34) fixed this issue for me.

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

Successfully merging a pull request may close this issue.

2 participants