fix feed selection

This commit is contained in:
feruz 2020-01-06 09:49:43 +02:00
parent 2fcb84623e
commit ff8e479d73
3 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ const Application = () => {
if (showAnimation) { if (showAnimation) {
setTimeout(() => { setTimeout(() => {
setShowAnimation(false); setShowAnimation(false);
}, 2000); }, 2833);
} }
}, [showAnimation]); }, [showAnimation]);

View File

@ -70,7 +70,7 @@ class ApplicationScreen extends Component {
{isShowToastNotification && ( {isShowToastNotification && (
<ToastNotification <ToastNotification
text={toastNotification} text={toastNotification}
duration={2000} duration={3000}
onHide={this._handleOnHideToastNotification} onHide={this._handleOnHideToastNotification}
/> />
)} )}

View File

@ -16,15 +16,15 @@ import { POPULAR_FILTERS, POPULAR_FILTERS_VALUE } from '../../../constants/optio
const FeedScreen = () => { const FeedScreen = () => {
return ( return (
<AccountContainer> <AccountContainer>
{({ currentAccount, isLoggedIn }) => ( {({ currentAccount }) => (
<Fragment> <Fragment>
<Header /> <Header />
<SafeAreaView style={styles.container}> <SafeAreaView style={styles.container}>
<Posts <Posts
filterOptions={[...POPULAR_FILTERS]} filterOptions={[...POPULAR_FILTERS]}
filterOptionsValue={[...POPULAR_FILTERS_VALUE]} filterOptionsValue={[...POPULAR_FILTERS_VALUE]}
getFor={isLoggedIn ? 'feed' : 'trending'} getFor={get(currentAccount, 'name', null) ? 'feed' : 'hot'}
selectedOptionIndex={isLoggedIn ? 0 : 2} selectedOptionIndex={get(currentAccount, 'name', null) ? 0 : 2}
feedUsername={get(currentAccount, 'name')} feedUsername={get(currentAccount, 'name')}
/> />
</SafeAreaView> </SafeAreaView>