开发者社区> 问答> 正文

如何在iOS React Native中修复NSNull类型的JSON值'<null>'转换问题

我使用的IOS React Native版本是:“ 0.61.5”,想知道如何在IOS React Native中修复NSNull类型的JSON值不能转换为NSString, 我的json库程序包, “ @ mapbox /折线”:“ ^ 1.1.0”, “ @ react-native-community / async-storage”:“ ^ 1.6.3”, “ @ react-native-community / geolocation”:“ ^ 2.0.2 “, ” @ react-native-community / netinfo“:” ^ 4.6.1“, ”手风琴-折叠-反应-本地“:” ^ 0.1.11“, ” axios“:” ^ 0.19.0“, ” 巴贝-plugin-transform-inline-environment-variables“:” ^ 0.4.3“, ” immutability-helper“:” ^ 3.0.1“, ” intl“:” ^ 1.2.5“, ” lodash“:” ^ 4.17 .15“, ” moment“:” ^ 2.24.0“, ” native“:” ^ 0.3.3“, ”native-base“:” ^ 2.13.8 “, ” numeraljs“:” ^ 1.5.6“, ” react“:” 16.9.0“, ” react-intl“:” ^ 3.7.0“, ” react-native ”:“ 0.61.5”, “ react-native-android-location-enabler”:“ ^ 1.2.0”, “ react-native-android-location-services-dialog-box”:“ ^ 2.8.2”, “ react-native-animatable”: “ ^ 1.3.3”, “ react-native-awesome-alerts”:“ ^ 1.2.0”, “ react-native-banner-carousel”:“ ^ 1.0.3”, “ react-native-cards-slider” :“ ^ 0.1.2”, “ react-native-check-box”:“ ^ 2.1.7”, “ react-native-coachmarks”:“ ^ 1.1.0”, “ react-native-collapsible”:“ ^ 1.5.1“, ” react-native-config“:” ^ 0.12.0“, ” react-native-countdown-component“:” ^ 2.6.0“, “ react-native-date-picker”:“ ^ 2.7.0”, “ react-native-datepicker”:“ ^ 1.7.2”, “ react-native-elements”:“ ^ 1.2.7”, “ react-native-fade-in-view”:“ ^ 1.0.5”, “ react-native-firebase”:“ ^ 5.5.6”, “ react-native-flexi-radio-button”:“ ^ 0.2。 2”, “ react-native-geocoding”:“ ^ 0.4.0”, “ react-native-geolocation-service”:“ ^ 3.1.0”, “ react-native-gesture-handler”:“ ^ 1.5.2” “, ” react-native-globalize“:” ^ 3.0.0“, ” react-native-hide-show-password-input“:” ^ 1.1.0“, ” react-native-htmlview“:” ^ 0.15。 0”, “ react-native-i18n”:“ ^ 2.0.15”, “ react-native-image-slider-show”:“ ^ 1.0.3”, “react-native-keyboard-aware-scrollview“:” ^ 2.1.0“, ” react-native-linear-gradient“:” ^ 2.5.6“, ” react-native-maps“:” ^ 0.26.1“, “ react-native-masked-text”:“ ^ 1.13.0”, “ react-native-modal”:“ ^ 11.5.3”, “ react-native-numeric-input”:“ ^ 1.8.3”, “ react-native-otp“:” ^ 1.0.0“, ” react-native-paper“:” ^ 3.2.1“, ” react-native-permissions“:” ^ 2.0.4“, ” react-native-pull“ -to-refresh”:“ ^ 2.1.3”, “ react-native-remote-svg”:“ ^ 2.0.6”, “ react-native- response -dimensions”:“ ^ 3.0.0”,“ react- native-sensitive-fontsize“:” ^ 0.4.2“, ” react-native- response -image“:” ^ 2.3.1“, ”react-native- active -layout“:” ^ 1.2.0“, ” react-native-selectmultiple-button“:” ^ 0.1.105“, ” react-native-swiper“:” ^ 1.5.14“, ”反应-native-tab-navigator“:” ^ 0.3.4“, “ react-native-vector-icons”:“ ^ 6.6.0”, “ react-native-webview”:“ ^ 7.5.2”, “ react-navigation”:“ ^ 4.0.10”, “ react-navigation- stack“:” ^ 1.10.3“, ” react-navigation-transitions“:” ^ 1.0.12“, ” react-redux“:” ^ 7.1.3“, ” react-toastify“:” ^ 5.4.1“ , “ redux”:“ ^ 4.0.4”, “ rn-placeholder”:“ ^ 3.0.0”, “ screen”:“ ^ 0.2.10”, “ socket.io-client”:“ ^ 2.3.0” , “ splash”:“ ^ 0.3.0”

展开
收起
南南唐语 2019-11-30 16:04:27 1241 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
手淘iOS性能优化探索 立即下载
From Java/Android to Swift iOS 立即下载
深入剖析iOS性能优化 立即下载