...
|
...
|
@@ -280,7 +280,6 @@ export default class extends Component { |
|
|
* @param {object} e native event
|
|
|
*/
|
|
|
onScrollEnd = e => {
|
|
|
console.log('onPageSelected');
|
|
|
// update scroll state
|
|
|
this.internals.isScrolling = false
|
|
|
|
...
|
...
|
@@ -395,7 +394,6 @@ export default class extends Component { |
|
|
if (state.dir === 'x') x = diff * state.width
|
|
|
if (state.dir === 'y') y = diff * state.height
|
|
|
|
|
|
console.log('xxxxx scrollBy diff=' + diff);
|
|
|
if (Platform.OS === 'android') {
|
|
|
this.refs.scrollView && this.refs.scrollView[animated ? 'setPage' : 'setPageWithoutAnimation'](diff)
|
|
|
} else {
|
...
|
...
|
@@ -459,7 +457,7 @@ export default class extends Component { |
|
|
|
|
|
let dots = []
|
|
|
const ActiveDot = this.props.activeDot || <View style={[{
|
|
|
backgroundColor: this.props.activeDotColor || '#007aff',
|
|
|
backgroundColor: this.props.activeDotColor || 'white',
|
|
|
width: 8,
|
|
|
height: 8,
|
|
|
borderRadius: 4,
|
...
|
...
|
@@ -469,7 +467,7 @@ export default class extends Component { |
|
|
marginBottom: 3
|
|
|
}, this.props.activeDotStyle]} />
|
|
|
const Dot = this.props.dot || <View style={[{
|
|
|
backgroundColor: this.props.dotColor || 'rgba(0,0,0,.2)',
|
|
|
backgroundColor: this.props.dotColor || 'rgba(237, 237, 237, 0.5)',
|
|
|
width: 8,
|
|
|
height: 8,
|
|
|
borderRadius: 4,
|
...
|
...
|
@@ -606,7 +604,6 @@ export default class extends Component { |
|
|
pages.unshift(total - 1 + '')
|
|
|
pages.push('0')
|
|
|
}
|
|
|
console.log(pages);
|
|
|
|
|
|
pages = pages.map((page, i) => {
|
|
|
if (props.loadMinimal) {
|
...
|
...
|
|