原创 react-native android調試

https://cloud.tencent.com/developer/article/1497073

原创 navigationBarHidden

navigationBar.hidden是對一個對象進行隱藏,而navigationBarHidden是navigationController 的一個屬性,會隱藏整個navigationController。 有人可能還是不太明

原创 修改React-Native本地node服務運行端口

1.路徑如下 在server中設置即可

原创 GestureRecognizer

apple中爲我們提供了很多手勢 都是增加體驗的好東西啊 1.退出鍵盤 //點擊取消鍵盤 UITapGestureRecognizer *tapRecognizer = [[UITapGestureRecognizer a

原创 Cannot find interface declarartion for 'nsobject' & Unknow type name 'NSString'

在引入第三方的時候,出現這種錯誤; Cannot find interface declarartion for 'nsobject' & Unknow type name 'NSString' 解決方案:引入框架#import <UIK

原创 es6的一些基礎

1.數組 複製一個數組(深拷貝) const a2 = ar…concat(); 2.數組插入一個內容 a1.push(item); //插入到末尾 a1.unshift(item); //插入到開頭 3.字符串轉json JSO

原创 mac安裝ipa包

https://www.jianshu.com/p/419a35f9533a

原创 rn 動態picker 使用

import React from "react"; import {View, Text, Image, Modal, Navigator, TextInput, ScrollVi

原创 iOS 推送

開發和生產環境的區分 1、真機測試-連數據線用xcode install 安裝的App屬於開發環境 服務端需要調用測試開發推送,App才能收到。 2、adHoc 證書的ipa 屬於開發環境,服務端需要調用測試開發推送,App才能收到推

原创 React-Native 學習筆記

導出模塊 export default moduleA; //a.js 引用模塊 import module from './a' //與a.js同目錄的b.js 箭頭函數

原创 加入螢石模塊報錯

遇到的問題 問題的原因是螢石模塊不支持模擬器 測試,模擬器運行就會報錯。用真機就沒問題。

原创 Redefinition of ‘RCTMethodinfo’

react-native 項目下載npm install之後無法運行 報錯信息 Redefinition of ‘RCTMethodinfo’ 具體報錯信息 error: redefinition of 'RCTMethodInfo

原创 問題-react-native無法運行

環境:macOS 10.13.6,Xcode:Version 10.0 (10A255) react-native --version0.55.0 error: Build input file cannot be found: '/

原创 問題-初始化的React項目運行時報錯

環境:macOS 10.13.6,Xcode:Version 10.0 (10A255) react-native --version0.55.0 'config.h' file not found /Users/hongye/De

原创 react-native run-ios失敗

報錯信息 Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier Build/Products/Debug-iphonesimulator/Ecogear