React/RCTConvert.h 文件找不到 ReactNativeNavigation ver3

React/RCTConvert.h file not found with ReactNativeNavigation ver3

我正在为移动应用制作以下技术。

react-native: v0.60.0
react-native-navigation: 3.0.0-alpha.2

我为 iOS 构建了这个应用程序,然后在 ReactNativeNavigation 代码中出现以下错误消息。

React/RCTConvert.h file not found

错误文件是Pods/Development Pods/ReactNativeNavigation/RNNOptions.h,这是它的内容。

#import <UIKit/UIKit.h>
#import <React/RCTConvert.h>
#import "BoolParser.h"
#import "TextParser.h"
#import "NumberParser.h"
#import "DictionaryParser.h"
#import "ColorParser.h"
#import "ImageParser.h"
#import "IntNumberParser.h"
#import "DoubleParser.h"

@interface RNNOptions : NSObject

- (instancetype)initWithDict:(NSDictionary*)dict;

- (RNNOptions *)overrideOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeInOptions:(RNNOptions *)otherOptions;

- (RNNOptions *)withDefault:(RNNOptions *)defaultOptions;

@end

我已经试过了,

但效果不佳,所以我又尝试了这些。

使用 React Native 0.60+,您不需要 link 手动响应原生导航。

只是 运行 react-native link react-native-navigationcd ios; pod install

有关详细信息,请参阅此 issue