about summary refs log tree commit diff
path: root/src/view/com/feeds/CustomFeed.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-08-24 18:28:26 -0500
committerGitHub <noreply@github.com>2023-08-24 16:28:26 -0700
commit462022741d52c92ffe9d32e449bc7dbec3bd78a6 (patch)
treec2305c044daa5caf10a9723401aeff57c24b88bb /src/view/com/feeds/CustomFeed.tsx
parent4654a9a45e68eeba289f2f35473fb2af60e754e2 (diff)
downloadvoidsky-462022741d52c92ffe9d32e449bc7dbec3bd78a6.tar.zst
Use `Pressable` for most links/embeds (#1181)
* delay press on all links

* use Pressable for all accessible links
Diffstat (limited to 'src/view/com/feeds/CustomFeed.tsx')
-rw-r--r--src/view/com/feeds/CustomFeed.tsx13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/view/com/feeds/CustomFeed.tsx b/src/view/com/feeds/CustomFeed.tsx
index 264c2d982..1635d17fc 100644
--- a/src/view/com/feeds/CustomFeed.tsx
+++ b/src/view/com/feeds/CustomFeed.tsx
@@ -1,12 +1,5 @@
 import React from 'react'
-import {
-  Pressable,
-  StyleProp,
-  StyleSheet,
-  View,
-  ViewStyle,
-  TouchableOpacity,
-} from 'react-native'
+import {Pressable, StyleProp, StyleSheet, View, ViewStyle} from 'react-native'
 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
 import {Text} from '../util/text/Text'
 import {usePalette} from 'lib/hooks/usePalette'
@@ -68,7 +61,7 @@ export const CustomFeed = observer(
     }, [store, item])
 
     return (
-      <TouchableOpacity
+      <Pressable
         testID={`feed-${item.displayName}`}
         accessibilityRole="button"
         style={[styles.container, pal.border, style]}
@@ -132,7 +125,7 @@ export const CustomFeed = observer(
             {pluralize(item.data.likeCount || 0, 'user')}
           </Text>
         ) : null}
-      </TouchableOpacity>
+      </Pressable>
     )
   },
 )