You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e736f9a
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(android): keep state for plain native objects in JS
Core stored JS properties on plain (non-extended) Java objects: listener
back-references on native views, the cached default background drawable,
default paddings, the SeekBar owner, a Frame's attach-listener owner,
animator transition data, and activity callbacks/flags on embedded host
activities. Runtimes where a plain object's JS wrapper can be dropped and
rebuilt lose that state or pay to mirror it.
Keep the state on the owning JS objects instead: View fields for
listeners and the default background, per-owner listener instances for
Slider, Frame and fragment animators, and an activity registry for
activity callbacks. Expandos on extended objects (NativeScriptActivity,
FragmentClass, TabHostImpl, listener implementations) are unchanged.
0 commit comments