我很快就会对此失去理智,但这就是:-)
我想在我的项目中使用RevenueCat/react-native-purchases
,但是一旦导入
import Purchases from 'react-native-purchases';
我收到消息“本地模块不能为空”
我有一个http://localhost:8080/travel/actuator/metrics/http.server.requests?tag=status:200,我无法获取 要么上班
您可以在回购中看到package.json和Podfile-我正在使用yarn将它们放在一起。
我已经将libRNPurchases.a
添加到了Xcode项目中,并且我已经重做test repo with a bare project了很多次:-$
为了快速参考,这是我的package.json文件
{
"scripts": {
"postinstall": "jetify",
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start --web",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"expo": "^35.0.0",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-native": "0.59.10",
"react-native-gesture-handler": "~1.3.0",
"react-native-purchases": "^2.4.1",
"react-native-reanimated": "~1.2.0",
"react-native-screens": "1.0.0-alpha.23",
"react-native-unimodules": "~0.5.4",
"react-native-web": "^0.11.7"
},
"devDependencies": {
"@babel/core": "^7.6.0",
"babel-jest": "24.9.0",
"jest": "24.9.0",
"jetifier": "^1.6.4",
"metro-react-native-babel-preset": "0.56.0",
"react-test-renderer": "16.9.0"
},
"jest": {
"preset": "react-native"
},
"private": true
}
PodFile是:
platform :ios, '11.0'
require_relative '../node_modules/react-native-unimodules/cocoapods'
target 'IAPTEST2' do
# Pods for IAPTEST
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTBlob',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'RNGestureHandler', :podspec => '../node_modules/react-native-gesture-handler/RNGestureHandler.podspec'
pod 'RNReanimated', :podspec => '../node_modules/react-native-reanimated/RNReanimated.podspec'
pod 'RNScreens', :path => '../node_modules/react-native-screens'
use_unimodules!
pod 'RNPurchases', :path => '../node_modules/react-native-purchases'
pod 'Purchases', '~> 2.6'
end
由于expo,我使用React-Native“ 0.59.10”-所以它仍然使用旧的pod文件格式。
有什么想法我需要做什么?