Skip to content

compile error RN 0.51, redefinition of 'RCTMethodInfo' #47

@quincycs

Description

@quincycs

I was able to fix the compiler error by changing the below

https://github.com/frostney/react-native-create-library/blob/master/templates/ios.js#L33

to

#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions