diff options
Diffstat (limited to 'src/view/screens/Search.tsx')
-rw-r--r-- | src/view/screens/Search.tsx | 56 |
1 files changed, 51 insertions, 5 deletions
diff --git a/src/view/screens/Search.tsx b/src/view/screens/Search.tsx index aea54051e..735326025 100644 --- a/src/view/screens/Search.tsx +++ b/src/view/screens/Search.tsx @@ -1,11 +1,57 @@ -import React from 'react' -import {Text, View} from 'react-native' +import React, {useEffect} from 'react' +import {StyleSheet, Text, View} from 'react-native' +import {ViewHeader} from '../com/util/ViewHeader' +import {SuggestedFollows} from '../com/discover/SuggestedFollows' import {ScreenParams} from '../routes' +import {useStores} from '../../state' +import {colors} from '../lib/styles' + +export const Search = ({visible, params}: ScreenParams) => { + const store = useStores() + const {name} = params + + useEffect(() => { + if (visible) { + store.nav.setTitle(`Search`) + } + }, [store, visible, name]) -export const Search = ({params}: ScreenParams) => { return ( - <View style={{justifyContent: 'center', alignItems: 'center'}}> - <Text style={{fontSize: 20, fontWeight: 'bold'}}>Search</Text> + <View style={styles.container}> + <ViewHeader title="Search" /> + <View style={styles.todoContainer}> + <Text style={styles.todoLabel}> + Search is still being implemented. Check back soon! + </Text> + </View> + <Text style={styles.heading}>Suggested follows</Text> + <SuggestedFollows /> </View> ) } + +const styles = StyleSheet.create({ + container: { + flex: 1, + backgroundColor: colors.white, + }, + + todoContainer: { + backgroundColor: colors.pink1, + margin: 10, + padding: 10, + borderRadius: 6, + }, + todoLabel: { + color: colors.pink5, + textAlign: 'center', + }, + + heading: { + fontSize: 16, + fontWeight: 'bold', + paddingTop: 12, + paddingBottom: 6, + paddingHorizontal: 12, + }, +}) |