Our app uses react-native-purchases@3.3.3. After including the library and uploading the build the app got rejected by Apple for non-public API usage. The message is:
Non-public API usage - The app references non-public selectors in app: configure, constants, isAnonymous, isPassthrough, removeValuesForKeys:completion:, resetWithCompletionBlock:.
isAnonymous
is a method in react-native-purchases
. Some of the other names are just normal public things in @react-native-community/async-storage
We cannot use react-native-purchases
versions newer than 3.3.3 because it is incompatible with our react
and react-native
dependencies.
Here are our dependencies:
"dependencies": {
"@react-native-community/async-storage": "^1.5.0",
"babel-plugin-transform-es2015-block-scoping": "6.15.0",
"react": "^16.8.3",
"react-native": "^0.59.10",
"react-native-camera": "^2.11.2",
"react-native-device-info": "^2.2.2",
"react-native-google-analytics-bridge": "^7.1.0",
"react-native-image-view": "^2.1.5",
"react-native-keyboard-aware-scroll-view": "^0.8.0",
"react-native-navigation": "^2.22.3",
"react-native-purchases": "3.3.3",
"react-native-qrcode-svg": "^6.0.3",
"react-native-svg": "^11.0.1",
"react-native-view-pdf": "^0.9.1",
"react-native-webview": "^6.3.1"
}
What should we do to resolve the issue?