Skip to content

Issue with methodQueue Setter in v0.9.0-rc0 of react-native-shared-elements #129

Open

Description

@Ceck-15

Hello,

I recently encountered an issue with corner radii and resolved it by switching to the pre-release version (v0.9.0-rc0) of react-native-shared-elements. However, after updating, I'm now facing the following error:

RNSharedElementTransition has no setter or ivar for its methodQueue, which is not permitted. You must either @synthesize the methodQueue property, or provide your own setter method.

-[RCTTurboModuleManager _createAndSetUpObjCModule:moduleName:moduleId:]
RCTTurboModuleManager.mm:746
__71-[RCTTurboModuleManager _provideObjCModule:moduleHolder:shouldPerfLog:]_block_invoke
__RCTUnsafeExecuteOnMainQueueSync_block_invoke
C05E486D-81F2-367E-9CE1-E14573C4C268
C05E486D-81F2-367E-9CE1-E14573C4C268
C05E486D-81F2-367E-9CE1-E14573C4C268
C05E486D-81F2-367E-9CE1-E14573C4C268
_dispatch_main_queue_callback_4CF
0013A8B1-2524-3534-B5BA-681AAF18C798
0013A8B1-2524-3534-B5BA-681AAF18C798
CFRunLoopRunSpecific
GSEventRunModal
8CC54497-F7EC-3903-AE5A-A274047C0CF1
UIApplicationMain
main
A770FF8C-8FB9-3E03-85FE-7F26DB36812B

For context, here are my current dependency versions:

expo: ~52.0.36
react: 18.3.1
react-native: 0.76.7
react-native-shared-element: ^0.9.0-rc0
react-navigation-shared-element: ^3.1.3

I attempted to address the error by adding:
@synthesize methodQueue = _methodQueue;

at the top of the implementation file, but unfortunately, it did not resolve the issue. I am using EAS Build for this project.
Any guidance or recommendations on how to resolve this would be greatly appreciated.

Activity

  1. github-actions commented on Mar 12, 2025

    @github-actions

    Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a snack.expo.dev link or link to a GitHub repo under your username).

    Can you provide a minimal repro which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.

  2. du5rte commented on Mar 13, 2025

    @du5rte

    Having this issue as well

  3. lvothnrv commented on Mar 20, 2025

    @lvothnrv

    Having this issue as well

  4. zeeshan6 commented on Mar 21, 2025

    @zeeshan6

    same issue coming in latest "react-native-shared-element": "^0.9.0-rc0", the issue in this class

    @implementation RNSharedElementTransition { NSArray* _items; UIView* _outerStyleView; UIView* _innerClipView; UIImageView* _primaryImageView; UIImageView* _secondaryImageView; BOOL _reactFrameSet; BOOL _initialLayoutPassCompleted; int _initialVisibleAncestorIndex; }

    and in. this file ios/RNSharedElementTransition.m

  5. solonik1 commented on May 11, 2025

    @solonik1

    Any updates here?

  6. tomcheung1208 commented on Jun 3, 2025

    @tomcheung1208

    I'm using react-native 0.79.2. Still has this issue. Can anyone tell me how to do temporary fix?
    Thanks

  7. Vadko commented on Jun 4, 2025

    @Vadko

    in order to fix the issue replace in RNSharedElementTransitionManager.m following code:

    - (dispatch_queue_t)methodQueue
    {
      return self.bridge.uiManager.methodQueue;
    }
    

    with this:

    - (dispatch_queue_t)methodQueue {
      return dispatch_get_main_queue();
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions