react-native-carousel icon indicating copy to clipboard operation
react-native-carousel copied to clipboard

Bug: carousel does not responding to orientation changes

Open ts-ign0re opened this issue 8 years ago • 1 comments

Hi, all i have some troubles with plugin. Video preview for details: http://take.ms/NqnKe

In summary then you change orientation carousel does not change width/height. We have this bug in a few projects.

ts-ign0re avatar May 17 '16 10:05 ts-ign0re

react & react native version ? working for me ` import React from 'react' import { View, Text, Image, ScrollView, Component, Dimensions,StyleSheet } from 'react-native' import Icon from 'react-native-vector-icons/MaterialIcons';

let Carousel = require('react-native-carousel') const { width } = Dimensions.get('window')

const PromotionSlider = ({url, ...rest}) => {

return (
    <Carousel
        width={200}
        delay={4000}
        {...rest}
        >
        <View style={styles.container}>
            <Text>Page 2</Text>
        </View>
        <View style={styles.container}>
            <Text>Page 3</Text>
        </View>
    </Carousel>
)

}

export default PromotionSlider

const styles = StyleSheet.create({
    container: {
        height: 200,
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: 'pink',
    }
})`

chromonav avatar Aug 15 '16 08:08 chromonav