Skip to content

Commit 395d5f3

Browse files
committed
FCBH-123
1 parent 4c5d307 commit 395d5f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

viewpager/ViewPager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
'use strict'
66

7-
import { PanResponder, Platform, ScrollView, StyleSheet, View, ViewPager } from 'react-native'
8-
import ViewPager from '@react-native-community/viewpager';
7+
import { PanResponder, Platform, ScrollView, View } from 'react-native'
8+
import RNCViewPager from '@react-native-community/viewpager';
99
import React, { Component } from 'react'
1010

1111
const SCROLLVIEW_REF = 'scrollView'
@@ -17,7 +17,7 @@ const SCROLL_STATE = {
1717
dragging: 'dragging'
1818
}
1919
export default class ViewPager extends Component {
20-
static propTypes = {...ViewPager.propTypes}
20+
static propTypes = {...RNCViewPager.propTypes}
2121

2222
static defaultProps = {
2323
initialPage: 0,
@@ -60,7 +60,7 @@ export default class ViewPager extends Component {
6060

6161
render () {
6262
return (this.props.forceScrollView || Platform.OS === 'ios') ? this._renderOnIOS() : (
63-
<ViewPager
63+
<RNCViewPager
6464
{...this.props}
6565
scrollEnabled={this.props.horizontalScroll ? true : false}
6666
ref={VIEWPAGER_REF}

0 commit comments

Comments
 (0)