-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ios): fix bad jumping when loadMinimal set true
- Loading branch information
1 parent
4a04adc
commit 1b1c951
Showing
6 changed files
with
54 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,44 @@ | ||
import React from 'react' | ||
import { | ||
Text, | ||
View | ||
} from 'react-native' | ||
import Swiper from 'react-native-swiper' | ||
import React from 'react'; | ||
import { Text, View } from 'react-native'; | ||
import Swiper from 'react-native-swiper'; | ||
|
||
var styles = { | ||
wrapper: { | ||
}, | ||
wrapper: {}, | ||
slide1: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
backgroundColor: '#9DD6EB' | ||
backgroundColor: '#9DD6EB', | ||
}, | ||
slide2: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
backgroundColor: '#97CAE5' | ||
backgroundColor: '#97CAE5', | ||
}, | ||
slide3: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
backgroundColor: '#92BBD9' | ||
backgroundColor: '#92BBD9', | ||
}, | ||
text: { | ||
color: '#fff', | ||
fontSize: 30, | ||
fontWeight: 'bold' | ||
} | ||
} | ||
fontWeight: 'bold', | ||
}, | ||
}; | ||
|
||
export default () => <Swiper style={styles.wrapper} showsButtons> | ||
<View style={styles.slide1}> | ||
<Text style={styles.text}>Hello Swiper</Text> | ||
</View> | ||
<View style={styles.slide2}> | ||
<Text style={styles.text}>Beautiful</Text> | ||
</View> | ||
<View style={styles.slide3}> | ||
<Text style={styles.text}>And simple</Text> | ||
</View> | ||
</Swiper> | ||
export default () => ( | ||
<Swiper style={styles.wrapper} showsButtons loop={false}> | ||
<View style={styles.slide1}> | ||
<Text style={styles.text}>Hello Swiper</Text> | ||
</View> | ||
<View style={styles.slide2}> | ||
<Text style={styles.text}>Beautiful</Text> | ||
</View> | ||
<View style={styles.slide3}> | ||
<Text style={styles.text}>And simple</Text> | ||
</View> | ||
</Swiper> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters