Skip to content

Native module tutorial should mention that synthesize is required #396

@mpj

Description

@mpj

This part of the tutorial:
http://facebook.github.io/react-native/docs/nativemodulesios.html#content
Screenshot

Will cause the not-very-helpful error "Unrecognized selector sent to instance 0x7fc546a12b30" bridge is not synthesized, and this needs to be added to CalendarManager.m:

@synthesize bridge = _bridge;

It's in the RCTBridgeModule code (

* To implement this in your module, just add @synthesize bridge = _bridge;
), but it took me quite some time to figure out because the error message is so weird (or at least to me that has only done a little iOS development before). A lot of the people doing this tutorial are going to be semi-fresh to iOS development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions