Simulator fixes
parent
bcedbbc8b3
commit
93984277c9
|
@ -13,6 +13,7 @@ const ADMIN_PASSWORD = 'admin-pass'
|
|||
const SECOND = 1000
|
||||
const MINUTE = SECOND * 60
|
||||
const HOUR = MINUTE * 60
|
||||
const DAY = HOUR * 24
|
||||
|
||||
export interface TestUser {
|
||||
email: string
|
||||
|
@ -66,6 +67,8 @@ export async function createServer(
|
|||
adminPassword: ADMIN_PASSWORD,
|
||||
inviteRequired,
|
||||
didPlcUrl: plcUrl,
|
||||
didCacheMaxTTL: DAY,
|
||||
didCacheStaleTTL: HOUR,
|
||||
jwtSecret: 'jwt-secret',
|
||||
availableUserDomains: ['.test'],
|
||||
appUrlPasswordReset: 'app://forgot-password',
|
||||
|
|
|
@ -99,15 +99,13 @@ export const HomeScreen = withAuthRequired(
|
|||
return <CustomFeedEmptyState />
|
||||
}, [])
|
||||
|
||||
const initialPage = store.me.followsCount === 0 ? 1 : 0
|
||||
return (
|
||||
<Pager
|
||||
ref={pagerRef}
|
||||
testID="homeScreen"
|
||||
onPageSelected={onPageSelected}
|
||||
renderTabBar={renderTabBar}
|
||||
tabBarPosition="top"
|
||||
initialPage={initialPage}>
|
||||
tabBarPosition="top">
|
||||
<FeedPage
|
||||
key="1"
|
||||
testID="followingFeedPage"
|
||||
|
|
Loading…
Reference in New Issue