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

RCT_EXPORT_MODULE() gets called but the properties are nil #13

Open
nipun0505 opened this issue Dec 7, 2018 · 1 comment
Open

RCT_EXPORT_MODULE() gets called but the properties are nil #13

nipun0505 opened this issue Dec 7, 2018 · 1 comment

Comments

@nipun0505
Copy link

Hi,
I was following the "ModalWithNavigatorCoordinator' example. Everything is fine but I cant dismiss the ViewController housing the RCTRootView.

I do get a callback in:

 // This is an exported method that is available in JS.
RCT_EXPORT_METHOD(closeModal) {
  [self.delegate closeModal];
}

but the self.delegate is nil. Also I noticed whenever I execute the call to open my react native component, I get this log:

2018-12-07 18:11:56.157 [info][tid:main][RCTRootView.m:293] Running application MySectionList ({
    initialProps =     {
    };
    rootTag = 1;
})
2018-12-07 18:11:56.157408+0530 ReactNativeTest[31182:518324] Running application MySectionList ({
    initialProps =     {
    };
    rootTag = 1;
})

"ReactNativeTest" is the name of my iOS project and MySectionList is the name of my React-Native project.

@Neogene
Copy link

Neogene commented May 20, 2021

Had the same problem, the only way to avoid it was to save the data to the userdefaults and recover the value in the RCT_EXPORT_METHOD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants