【发布时间】:2019-07-28 03:02:39
【问题描述】:
我正在为移动应用开发以下技术。
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
我已经试过了,
- 关注此tutorial
但效果不好,所以我又尝试了这些。
- 将
pod 'ReactNativeNavigation', :path => '../node_modules/react-native-navigation'插入ios/Podfile。 在
ios目录中运行react-native link react-native-navigation和pod install在 Xcode 中清理并重建项目。
【问题讨论】:
标签: react-native react-native-navigation