1.RCTSRWebSocket.m报错:
SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t*)mask_key)做处理,只需在该处加上(void)即可。如下:(void)SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
RCTSRWebSocket.m 共有两处涉及,请确保都要修改。
2.Use of undeclared identifier '_refreshControl'; did you mean 'refreshControl'?这个错误解决办法
@implementation RCTCustomScrollView
{
__weak UIView *_dockedHeaderView;
RCTRefreshControl *_refreshControl; //加入此行
}
如果你的react-ntive 版本在较高,这些不用处理。