mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 03:11:38 +03:00
Merge pull request #1419 from esteemapp/bugfix/notification-navigation
Fixed crash issue when user click to notification
This commit is contained in:
commit
71da8c84e3
@ -223,3 +223,4 @@ task copyDownloadableDepsToLibs(type: Copy) {
|
|||||||
|
|
||||||
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
||||||
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
|
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
|
||||||
|
apply plugin: 'com.google.gms.google-services'
|
@ -291,7 +291,7 @@ PODS:
|
|||||||
- React
|
- React
|
||||||
- RNIap (3.4.15):
|
- RNIap (3.4.15):
|
||||||
- React
|
- React
|
||||||
- RNImageCropPicker (0.25.3):
|
- RNImageCropPicker (0.26.1):
|
||||||
- QBImagePickerController
|
- QBImagePickerController
|
||||||
- React-Core
|
- React-Core
|
||||||
- React-RCTImage
|
- React-RCTImage
|
||||||
@ -519,7 +519,7 @@ SPEC CHECKSUMS:
|
|||||||
rn-fetch-blob: f525a73a78df9ed5d35e67ea65e79d53c15255bc
|
rn-fetch-blob: f525a73a78df9ed5d35e67ea65e79d53c15255bc
|
||||||
RNGestureHandler: 4cb47a93019c1a201df2644413a0a1569a51c8aa
|
RNGestureHandler: 4cb47a93019c1a201df2644413a0a1569a51c8aa
|
||||||
RNIap: b4c77c8bc4501203f4b743126a05da23f10f40b4
|
RNIap: b4c77c8bc4501203f4b743126a05da23f10f40b4
|
||||||
RNImageCropPicker: bfb3ea9c8622f290532e2fe63f369e0d5a52f597
|
RNImageCropPicker: e1d8c3381e5b05a1bdcd13ea57a4f1c020a09cef
|
||||||
RNReanimated: 6abbbae2e5e72609d85aabd92a982a94566885f1
|
RNReanimated: 6abbbae2e5e72609d85aabd92a982a94566885f1
|
||||||
RNSVG: be27aa7c58819f97399388ae53d7fa0572f32c7f
|
RNSVG: be27aa7c58819f97399388ae53d7fa0572f32c7f
|
||||||
RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
|
RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
|
||||||
|
Binary file not shown.
@ -183,8 +183,7 @@ class ApplicationContainer extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (routeName && (profile || content)) {
|
if (routeName && (profile || content)) {
|
||||||
// eslint-disable-next-line no-undef
|
navigate({
|
||||||
NavigationService.navigate({
|
|
||||||
routeName,
|
routeName,
|
||||||
params,
|
params,
|
||||||
key: permlink || author,
|
key: permlink || author,
|
||||||
@ -330,7 +329,6 @@ class ApplicationContainer extends Component {
|
|||||||
markActivityAsRead(username, activity_id).then(result => {
|
markActivityAsRead(username, activity_id).then(result => {
|
||||||
dispatch(updateUnreadActivityCount(result.unread));
|
dispatch(updateUnreadActivityCount(result.unread));
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!some(params, isEmpty)) {
|
if (!some(params, isEmpty)) {
|
||||||
navigate({
|
navigate({
|
||||||
routeName,
|
routeName,
|
||||||
|
@ -30,10 +30,6 @@ const Application = () => {
|
|||||||
isThemeReady,
|
isThemeReady,
|
||||||
isPinCodeRequire,
|
isPinCodeRequire,
|
||||||
}) => {
|
}) => {
|
||||||
if (showAnimation || !isReady || !isRenderRequire || !isThemeReady) {
|
|
||||||
return <Launch />;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Modal
|
<Modal
|
||||||
@ -51,6 +47,7 @@ const Application = () => {
|
|||||||
isReady={isReady}
|
isReady={isReady}
|
||||||
isDarkTheme={isDarkTheme}
|
isDarkTheme={isDarkTheme}
|
||||||
/>
|
/>
|
||||||
|
{(showAnimation || !isReady || !isRenderRequire || !isThemeReady) && <Launch />}
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
|
@ -2,17 +2,21 @@ import EStyleSheet from 'react-native-extended-stylesheet';
|
|||||||
|
|
||||||
export default EStyleSheet.create({
|
export default EStyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
flex: 1,
|
position: 'absolute',
|
||||||
justifyContent: 'center',
|
top: 0,
|
||||||
alignItems: 'center',
|
bottom: 0,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
backgroundColor: '$pureWhite',
|
backgroundColor: '$pureWhite',
|
||||||
zIndex: 999,
|
zIndex: 999,
|
||||||
},
|
},
|
||||||
darkContainer: {
|
darkContainer: {
|
||||||
flex: 1,
|
position: 'absolute',
|
||||||
zIndex: 999,
|
top: 0,
|
||||||
justifyContent: 'center',
|
bottom: 0,
|
||||||
alignItems: 'center',
|
left: 0,
|
||||||
|
right: 0,
|
||||||
backgroundColor: '#1e2835',
|
backgroundColor: '#1e2835',
|
||||||
|
zIndex: 999,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user