问题是我们需要使用较新版本的react来构建,以便可以使用API 26或更高版本进行构建,因为这是现在提交到Google Play的新应用程序所要求的。
似乎这是一个问题,在发布版本中babelHelpers没有被正确加载。我不知道如何修复它,因为所有我找到的方法都似乎无法解决这个问题。以下是崩溃应用程序的logcat供参考。
E/ReactNativeJS: undefined is not a function (evaluating 'babelHelpers.applyDecoratedDescriptor(t.prototype,"notificationsEnabled",[Ve.serializable],{configurable:!0,enumerable:!0,writable:!0,initializer:null})')
09-17 12:32:48.301 11704-11758/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
Process: com.***********, PID: 11704
com.facebook.react.common.JavascriptException: undefined is not a function (evaluating 'babelHelpers.applyDecoratedDescriptor(t.prototype,"notificationsEnabled",[Ve.serializable],{configurable:!0,enumerable:!0,writable:!0,initializer:null})'), stack:
<unknown>@820:1833