Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native warning: RCTC module not exported

Tags:

react-native

I am getting a warning when running my React Native app on iOS:

Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?

How can I fix this?

like image 708
user2702179 Avatar asked Dec 24 '22 06:12

user2702179


1 Answers

This occurs with RN 0.55.3 and probably any newer version.

For now it's not the best solution, but to avoid the warning we can ignore it:

import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Class RCTCxxModule']);
like image 136
Kirankumar Dafda Avatar answered Dec 25 '22 22:12

Kirankumar Dafda