diff --git a/package.json b/package.json
index 0034434e..d66511c0 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"native": "220102",
"major": 3,
"minor": 2,
- "patch": 1,
+ "patch": 2,
"expo": "44.0.0"
},
"description": "tooot app for Mastodon",
diff --git a/src/App.tsx b/src/App.tsx
index 971d6c1b..21c6fbf3 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -33,7 +33,7 @@ dev()
sentry()
audio()
push()
-enableFreeze()
+enableFreeze(true)
const App: React.FC = () => {
log('log', 'App', 'rendering App')
diff --git a/src/screens/Compose/Root/Footer/Poll.tsx b/src/screens/Compose/Root/Footer/Poll.tsx
index 363ddb4d..51989728 100644
--- a/src/screens/Compose/Root/Footer/Poll.tsx
+++ b/src/screens/Compose/Root/Footer/Poll.tsx
@@ -190,16 +190,7 @@ const ComposePoll: React.FC = () => {
title={t('content.root.footer.poll.expiration.heading')}
content={t(`content.root.footer.poll.expiration.options.${expire}`)}
onPress={() => {
- // @ts-ignore
- const expirations: [
- '300',
- '1800',
- '3600',
- '21600',
- '86400',
- '259200',
- '604800'
- ] = [
+ const expirations = [
'300',
'1800',
'3600',
@@ -220,16 +211,17 @@ const ComposePoll: React.FC = () => {
),
t('content.root.footer.poll.expiration.options.cancel')
],
- cancelButtonIndex: 7
+ cancelButtonIndex: expirations.length
},
index => {
- if (index && expirations.length < 7) {
+ if (index && index < expirations.length) {
analytics('compose_poll_expiration_press', {
current: expire,
new: expirations[index]
})
composeDispatch({
type: 'poll',
+ // @ts-ignore
payload: { expire: expirations[index] }
})
}
diff --git a/src/screens/Tabs.tsx b/src/screens/Tabs.tsx
index 7f83015f..a7034512 100644
--- a/src/screens/Tabs.tsx
+++ b/src/screens/Tabs.tsx
@@ -102,6 +102,19 @@ const ScreenTabs = React.memo(
)
const composeComponent = useCallback(() => null, [])
+ const meListeners = useMemo(
+ () => ({
+ tabLongPress: () => {
+ haptics('Light')
+ //@ts-ignore
+ navigation.navigate('Tab-Me', { screen: 'Tab-Me-Root' })
+ //@ts-ignore
+ navigation.navigate('Tab-Me', { screen: 'Tab-Me-Switch' })
+ }
+ }),
+ []
+ )
+
const previousTab = useSelector(getPreviousTab, () => true)
const versionUpdate = useSelector(getVersionUpdate)
@@ -128,7 +141,12 @@ const ScreenTabs = React.memo(
listeners={composeListeners}
/>
-
+
)
},