Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VisibleMarkov committed Jan 19, 2019
1 parent 943bbc7 commit 274ead3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import type {NativeComponent} from 'ReactNative';
import type {Node} from 'React';
import type {ViewStyleProp} from 'StyleSheet';

type PageScrollState = 'idle' | 'dragging' | 'settling';

type PageScrollEvent = SyntheticEvent<
$ReadOnly<{|
position: number,
Expand All @@ -26,7 +28,7 @@ type PageScrollEvent = SyntheticEvent<

type PageScrollStateChangedEvent = SyntheticEvent<
$ReadOnly<{|
pageScrollState: string,
pageScrollState: PageScrollState,
|}>,
>;

Expand Down
10 changes: 4 additions & 6 deletions Libraries/Components/ViewPager/ViewPagerAndroid.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import type {ViewStyleProp} from 'StyleSheet';

const VIEWPAGER_REF = 'viewPager';

type PageScrollState = 'idle' | 'dragging' | 'settling';
interface PageScrollState {
pageScrollState: 'idle' | 'dragging' | 'settling';
}

type PageScrollEvent = SyntheticEvent<
$ReadOnly<{|
Expand All @@ -32,11 +34,7 @@ type PageScrollEvent = SyntheticEvent<
|}>,
>;

type PageScrollStateChangedEvent = SyntheticEvent<
$ReadOnly<{|
pageScrollState: string,
|}>,
>;
type PageScrollStateChangedEvent = SyntheticEvent<PageScrollState>;

type PageSelectedEvent = SyntheticEvent<
$ReadOnly<{|
Expand Down

0 comments on commit 274ead3

Please sign in to comment.