Closed aksonov closed 8 years ago
I've met another error when compiling the project: RCCNavigationController can't be built correctly with many complicating and declaration errors.
I made it to work by changing RCTRootView.m file located in React ios library -> Base-> RCTRootView.m. change:
- (NSNumber *)reactTag
{
RCTAssertMainQueue();
if (!super.reactTag) {
/**
* Every root view that is created must have a unique react tag.
* Numbering of these tags goes from 1, 11, 21, 31, etc
*
* NOTE: Since the bridge persists, the RootViews might be reused, so the
* react tag must be re-assigned every time a new UIManager is created.
*/
self.reactTag = [_bridge.uiManager allocateRootTag];
}
return super.reactTag;
}
to
- (NSNumber *)reactTag
{
RCTAssertMainQueue();
return self.reactTag = [_bridge.uiManager allocateRootTag];
}
you can temporarily use this hack but I think it is not a good solution. maybe it gives some hints for fixing this issue.
for more info see this commit: https://github.com/facebook/react-native/commit/313d84d507689a78a9f4084b162ac87c09d7d5e3#diff-9bdd6391cd866b37f84e7e9b5f276ff9
Closing as duplicate of #85
Demo doesn't work with latest RN 0.31. #85 mentions this error, but there are also other errors, so let's make one issue - one error.