Merge pull request #2536 from ecency/nt/bugsnag-fixes

Nt/bugsnag fixes
This commit is contained in:
Feruz M 2022-11-17 20:38:57 +05:30 committed by GitHub
commit 2adb8306dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View File

@ -24,7 +24,9 @@
"bump-patch": "npm version patch --no-git-tag-version",
"bump-minor": "npm version minor --no-git-tag-version",
"bump-major": "npm version major --no-git-tag-version",
"postinstall": "npx patch-package && node_modules/.bin/rn-nodeify --install --hack --yarn && cd ios && pod install"
"postinstall": "npx patch-package && node_modules/.bin/rn-nodeify --install --hack --yarn && cd ios && pod install",
"ubuntu:pixel_6": "cd $ANDROID_HOME/tools && __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia emulator -avd pixel_6 -gpu host",
"ubuntu:flipper": "__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia flipper"
},
"dependencies": {
"@babel/preset-typescript": "^7.16.7",

View File

@ -69,7 +69,7 @@ const PostCardView = ({
};
const _handleOnReblogsPress = () => {
if (reblogs.length > 0) {
if (reblogs && reblogs.length > 0) {
handleOnReblogsPress();
}
};

View File

@ -1,8 +1,5 @@
import Bugsnag from '@bugsnag/react-native';
import Config from 'react-native-config';
const bugsnapInstance = Bugsnag.start({
apiKey: Config.BUGSNAG_API_KEY,
});
const bugsnapInstance = Bugsnag.start();
export default bugsnapInstance;

View File

@ -72,7 +72,7 @@ class HiveSigner extends PureComponent {
Alert.alert(
'Error',
// intl.formatMessage({ id:
error,
error.message || error.toString(),
// }),
);
// TODO: return