about summary refs log tree commit diff
path: root/src/view/screens/Search.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/screens/Search.tsx')
-rw-r--r--src/view/screens/Search.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/view/screens/Search.tsx b/src/view/screens/Search.tsx
index b1c78f681..7f3dd966b 100644
--- a/src/view/screens/Search.tsx
+++ b/src/view/screens/Search.tsx
@@ -1,6 +1,7 @@
 import React, {useEffect} from 'react'
 import {StyleSheet, Text, View} from 'react-native'
 import {ViewHeader} from '../com/util/ViewHeader'
+import {FAB} from '../com/util/FloatingActionButton'
 import {SuggestedFollows} from '../com/discover/SuggestedFollows'
 import {ScreenParams} from '../routes'
 import {useStores} from '../../state'
@@ -15,6 +16,9 @@ export const Search = ({visible, params}: ScreenParams) => {
       store.nav.setTitle(`Search`)
     }
   }, [store, visible, name])
+  const onComposePress = () => {
+    store.shell.openComposer({})
+  }
 
   return (
     <View style={styles.container}>
@@ -26,6 +30,7 @@ export const Search = ({visible, params}: ScreenParams) => {
       </View>
       <Text style={styles.heading}>Suggested follows</Text>
       <SuggestedFollows asLinks />
+      <FAB icon="pen-nib" onPress={onComposePress} />
     </View>
   )
 }