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) {
setTimeout(() => {
setShowAnimation(false);
}, 2000);
}, 2833);
}
}, [showAnimation]);

View File

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

View File

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