diff --git a/src/api/general.ts b/src/api/general.ts index 56cda191..330d15c5 100644 --- a/src/api/general.ts +++ b/src/api/general.ts @@ -60,7 +60,8 @@ const apiGeneral = async ({ }) .catch(error => { if (sentry) { - Sentry.Native.captureException(error, { extra: error }) + Sentry.Native.setExtras(error.response) + Sentry.Native.captureException(error) } if (error.response) { diff --git a/src/components/GracefullyImage.tsx b/src/components/GracefullyImage.tsx index 33f658a5..f7da33b2 100644 --- a/src/components/GracefullyImage.tsx +++ b/src/components/GracefullyImage.tsx @@ -19,7 +19,7 @@ import { Blurhash } from 'react-native-blurhash' export interface Props { hidden?: boolean - uri: { preview?: string; original: string; remote?: string } + uri: { preview?: string; original?: string; remote?: string } blurhash?: string dimension?: { width: number; height: number } onPress?: () => void diff --git a/src/components/Parse/Emojis.tsx b/src/components/Parse/Emojis.tsx index 00ce337c..c27d4407 100644 --- a/src/components/Parse/Emojis.tsx +++ b/src/components/Parse/Emojis.tsx @@ -3,8 +3,7 @@ import { StyleConstants } from '@utils/styles/constants' import { adaptiveScale } from '@utils/styles/scaling' import { useTheme } from '@utils/styles/ThemeManager' import React, { useMemo } from 'react' -import { StyleSheet, Text } from 'react-native' -import FastImage from 'react-native-fast-image' +import { Image, StyleSheet, Text } from 'react-native' import { useSelector } from 'react-redux' const regexEmoji = new RegExp(/(:[A-Za-z0-9_]+:)/) @@ -70,7 +69,7 @@ const ParseEmojis = React.memo( {/* When emoji starts a paragraph, lineHeight will break */} {i === 0 ? : null} - = ({ composePost(params, composeState) .then(() => { haptics('Success') - dispatch(updateStoreReview(1)) + if ( + Platform.OS === 'ios' && + Platform.constants.osVersion === '13.3' + ) { + // https://github.com/tooot-app/app/issues/59 + } else { + dispatch(updateStoreReview(1)) + } const queryKey: QueryKeyTimeline = [ 'Timeline', { page: 'Following' } diff --git a/src/screens/Compose/DraftsList/Root.tsx b/src/screens/Compose/DraftsList/Root.tsx index fa1bf999..0213e8c3 100644 --- a/src/screens/Compose/DraftsList/Root.tsx +++ b/src/screens/Compose/DraftsList/Root.tsx @@ -13,6 +13,7 @@ import React, { useCallback, useContext, useState } from 'react' import { useTranslation } from 'react-i18next' import { Dimensions, + Image, Modal, Platform, Pressable, @@ -20,7 +21,6 @@ import { Text, View } from 'react-native' -import FastImage from 'react-native-fast-image' import { PanGestureHandler } from 'react-native-gesture-handler' import { SwipeListView } from 'react-native-swipe-list-view' import { useDispatch, useSelector } from 'react-redux' @@ -112,7 +112,7 @@ const ComposeDraftsListRoot: React.FC = ({ timestamp }) => { {item.attachments?.uploads.length ? ( {item.attachments.uploads.map((attachment, index) => ( - = ({ index }) => { return ( <> - { key={index} style={[styles.container, { width: calculateWidth(item) }]} > - case 'Tab-Me': return instanceActive !== -1 ? ( - = ({ account, limitHeight = false }) => { const topInset = useSafeAreaInsets().top return ( - = ({ account, myInfo }) => { )