import React, {useEffect, useState, useRef} from 'react' import {StyleSheet, TextInput, View} from 'react-native' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {ProfileFollows as ProfileFollowsComponent} from '../com/profile/ProfileFollows' import {Selector} from '../com/util/Selector' import {Text} from '../com/util/text/Text' import {colors} from '../lib/styles' import {ScreenParams} from '../routes' import {useStores} from '../../state' import {useAnimatedValue} from '../lib/hooks/useAnimatedValue' export const Contacts = ({navIdx, visible}: ScreenParams) => { const store = useStores() const selectorInterp = useAnimatedValue(0) useEffect(() => { if (visible) { store.nav.setTitle(navIdx, 'Contacts') } }, [store, visible, navIdx]) const [searchText, onChangeSearchText] = useState('') const inputRef = useRef(null) return ( Contacts {!!store.me.handle && } ) } const styles = StyleSheet.create({ section: { backgroundColor: colors.white, }, title: { fontSize: 30, fontWeight: 'bold', paddingHorizontal: 12, paddingVertical: 6, }, searchContainer: { flexDirection: 'row', backgroundColor: colors.gray1, paddingHorizontal: 8, paddingVertical: 8, marginHorizontal: 10, marginBottom: 6, borderRadius: 4, }, searchIcon: { color: colors.gray5, marginRight: 8, }, searchInput: { flex: 1, color: colors.black, }, })