美文网首页
React Native 0.32以下版本Xcode8报错解决办

React Native 0.32以下版本Xcode8报错解决办

作者: iOSser | 来源:发表于2017-02-17 17:28 被阅读24次
RCTSRWEBSOCKET.M报错

Ignoring return value of function declared with warn_unused_result attribute

报错代码:

SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);

在报错代码前面加上(void)修改为:

  (void)SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
RCTSCROLLVIEW.M 报错

Use of undeclared identifier '_refreshControl'; did you mean 'refreshControl'?

在RCTCustomScrollView类的实现里面进行如下修改:

  @implementation RCTCustomScrollView
 {
      __weak UIView *_dockedHeaderView;
       RCTRefreshControl *_refreshControl;  // 加入此行
 }

相关文章

网友评论

      本文标题:React Native 0.32以下版本Xcode8报错解决办

      本文链接:https://www.haomeiwen.com/subject/kvllwttx.html