所有错误都由react-native中的白色背景隐藏

时间:2018-02-01 05:45:58

标签: react-native

这是我的应用程序在抛出错误时的屏幕截图。但是,当我按下屏幕时,错误将以灰色文本显示。

enter image description here

我正在使用CocoaPods将react-native导入我的应用程序。这是我的podfile:

# Uncomment the next line to define a global platform for your project
# source 'https://github.com/CocoaPods/Specs.git'

# platform :ios, '10.0'

target '{MY_PROJECT_NAME}' do
  rn_path = '../node_modules/react-native'
  rn_maps_path = '../node_modules/react-native-maps'

  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'React', path: '../node_modules/react-native', :subspecs => [
    'Core',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket',
    'BatchedBridge',
    'DevSupport'
  ]

  # Required by RNFirebase
  pod 'Firebase/Core'

  # pod 'FirebaseMessaging'
  pod 'react-native-maps', path: rn_maps_path
  pod 'GoogleMaps'  
  pod 'react-native-google-maps', path: rn_maps_path

  target '{MY_PROJECT_NAME}-tvOSTests' do
    inherit! :search_paths

    pod 'CodePush', :path => '../node_modules/react-native-code-push'

    pod 'RNBackgroundGeolocation', :path => '../node_modules/react-native-background-geolocation'

    pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'

    pod 'ReactNativePermissions', :path => '../node_modules/react-native-permissions'

  end

  target 'DolphinTests' do
    inherit! :search_paths
  end

end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == "react-native-google-maps"
      target.build_configurations.each do |config|
        config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
      end
    end
  end
end

我不确定是不是因为我错过了一些反应原生的子规格。

0 个答案:

没有答案