Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with DPad in AndroidTV #230

Open
skkakadiya opened this issue Sep 13, 2018 · 0 comments
Open

Not working with DPad in AndroidTV #230

skkakadiya opened this issue Sep 13, 2018 · 0 comments

Comments

@skkakadiya
Copy link

I used this library for showing the carousel in my React Native TV app. It working fine with Apple TV(tvOS) but when I run this in Android TV, the image will not change on the left and right direction.

Code:

<Carousel
    style={{ flex: 1 }}
    ref={(ref) => { this.carousel = ref; }}
    autoplay={false}
    bullets
    isLooped={false}
    onAnimateNextPage={(p) => { if(p === 3) { Actions.login() }}}
>
    <Image style={styles.image} source={require('./images/background.jpg')} />
    <Image style={styles.image} source={require('./images/onboarding_1.jpg')} />
    <Image style={styles.image} source={require('./images/onboarding_2.jpg')} />
    <Image style={styles.image} source={require('./images/onboarding_3.jpg')} />
</Carousel>

Also, it shows half move image when I press left or right from DPad.
screenshot_1536830854

RN info:
Environment:
OS: macOS High Sierra 10.13.4
Node: 10.3.0
Yarn: Not Found
npm: 6.4.0
Watchman: 4.9.0
Xcode: Xcode 9.4 Build version 9F1027a
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: ~0.55.2 => 0.55.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant