question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Horizonal={false} doesn't work

See original GitHub issue

Which OS

Win 7 x64

Version

Which versions are you using:

  • react-native-swiper v1.5.12
  • react-native v0.54.0

Expected behaviour

Vertical swiper

Actual behaviour

Horizonal default swiper, with vertical buttons

Steps to reproduce

I’ve just installed RN and react-native-swiper. This is the code of the component


import React from 'react'
import {
	Text,
	View,
	ImageBackground
} from 'react-native'
import Swiper from 'react-native-swiper'

var styles = {
	wrapper: {
	},
	slide1: {
		flex: 1,
		justifyContent: 'center',
		alignItems: 'center',
	},
	slide2: {
		flex: 1,
		justifyContent: 'center',
		alignItems: 'center',
		backgroundColor: '#97CAE5'
	},
	slide3: {
		flex: 1,
		justifyContent: 'center',
		alignItems: 'center',
		backgroundColor: '#92BBD9'
	},
	text: {
		color: '#fff',
		fontSize: 30,
		fontWeight: 'bold'
	}
}

export default () => <Swiper style={styles.wrapper} 
 horizontal={false} nextButton={<Text> next </Text>} prevButton={<Text> prev </Text>}>
	<View style={styles.slide1}>
		<ImageBackground
			source={require('./../img/slide-home1.jpg')}
			style={{ flex: 1,width: '100%', height: '100%'}}>
			<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
				<Text>Your Contents</Text>
			</View>

		</ImageBackground >
	</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>

video

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

9reactions
pinuofengcommented, Apr 19, 2018

可以说中文吗

2reactions
pinuofengcommented, Apr 27, 2018

can say chinese?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accessing the Horizon View Administrator page displays a ...
The admin sees a error message "Login Failed" when logging in over the console. Access to Virtual Desktops over html5 works. Purpose ...
Read more >
VMware Horizon - Failed To Connect To The Connection Server
The fix involved adding in a checkOrigin=false line into the file and restarting the server. This fixed it almost every time until last...
Read more >
Failed Jobs is loading forever with error "t.includes is not a ...
When trying to load the Failed Jobs in the browser console I'm getting the ... but it seems sometimes horizon terminate just doesn't...
Read more >
VMware Horizon 8 Console Configuration - Carl Stalhood
In Horizon 2111 (8.4), https://localhost/admin doesn't seem to work. If you don't use one of these URLs then you'll see a Login Failed...
Read more >
Tips for Combating Plaintiff's Deposition Tricks #9: The False ...
After all, the jury doesn't know any better, and will typically assume that the question being posed is fair, complete, and accurate. False...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found