我正在尝试学习如何构建一个react-native模块。我跟着a tutorial,我被困在闪屏上。我尝试运行我的应用时也遇到此错误:
Thread 1: signal SIGABRT
我没有修改index.ios.js
中的任何代码,但我创建了两个文件:
#import <Foundation/Foundation.h>
#import "React/RCTBridgeModule.h"
@interface GifMaker : NSObject
@end
#import "GifMaker.h"
#import "React/RCTLog.h"
@implementation GifMaker
// This RCT (React) "macro" exposes the current module to JavaScript
RCT_EXPORT_MODULE();
// We must explicitly expose methods otherwise JavaScript can't access anything
RCT_EXPORT_METHOD(get)
{
RCTLogInfo(@"Hello There!");
}
@end