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

[modules][Android] Fixed views are not correctly initialized after reloading on Android #20063

Merged
merged 3 commits into from
Nov 16, 2022

Conversation

lukmccall
Copy link
Contributor

Why

Closes #20033.

How

We can't invalidate mWrapperDelegateHolders because view managers won't receive the correct app context. This variable memorizes and updates app context references in the view managers exported from Kotlin.

That regression has been introduced in #19538. However, I don't think not clearing mWrapperDelegateHolders will affect the Updates.reloadAsync behavior.

Test Plan

  • bare-expo and NCL ✅

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Nov 15, 2022
Copy link
Contributor

@Kudo Kudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix.

Kudo added a commit that referenced this pull request Nov 16, 2022
lukmccall and others added 2 commits November 16, 2022 10:17
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@lukmccall lukmccall merged commit bd9b2b2 into main Nov 16, 2022
@lukmccall lukmccall deleted the @lukmccall/core/fix-modules-not-working-after-reload branch November 16, 2022 09:18
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Nov 16, 2022
Kudo added a commit that referenced this pull request Nov 17, 2022
# Why

backport fix for sdk47 to versioned code

# How

- backport #19920 
- backport #20037
- backport #20063
Kudo added a commit that referenced this pull request Nov 22, 2022
# Why

backport fix for sdk47 to versioned code

# How

- backport #19920
- backport #20037
- backport #20063

(cherry picked from commit e8fa33d)
Kudo pushed a commit that referenced this pull request Nov 24, 2022
…loading on Android (#20063)

Closes #20033.

We can't invalidate `mWrapperDelegateHolders` because view managers won't receive the correct app context. This variable memorizes and updates app context references in the view managers exported from Kotlin.

That regression has been introduced in #19538. However, I don't think not clearing `mWrapperDelegateHolders` will affect the `Updates.reloadAsync` behavior.

- bare-expo and NCL ✅

(cherry picked from commit bd9b2b2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

android Expo SDK 47 Camera no work after reload js bundle
4 participants