We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i have image. when my screen on landscape, screen can not scroll. while adding image becomes wide.
this is my code
const { width, height } = Dimensions.get('window')
const styles = { image: { width:null,
alignSelf: 'stretch', flex: 1
} }
import {PagerTabIndicator, IndicatorViewPager, PagerTitleIndicator, PagerDotIndicator} from 'rn-viewpager';
export default class ViewPagerPage extends Component { render() {
var _scrollView: ScrollView; return ( <View style={{flex:1}}> <IndicatorViewPager style={{flex:1}} indicator={this._renderDotIndicator()} > <View style={{backgroundColor:'cadetblue'}}> <Text>page one</Text> </View> <View style={{backgroundColor:'cornflowerblue', flex:1}}> <ScrollView pagingEnabled = {true} > <Image style={styles.image} source={require('./img/2.jpg')} /> // **<-- this is my question** </ScrollView> </View> <View style={{backgroundColor:'#1AA094'}}> <Text>page three</Text> </View> </IndicatorViewPager> </View> ); } _renderDotIndicator() { return <PagerDotIndicator pageCount={3} />; }
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i have image. when my screen on landscape, screen can not scroll. while adding image becomes wide.
this is my code
const { width, height } = Dimensions.get('window')
const styles = {
image: {
width:null,
}
}
import {PagerTabIndicator, IndicatorViewPager, PagerTitleIndicator, PagerDotIndicator} from 'rn-viewpager';
export default class ViewPagerPage extends Component {
render() {
}
The text was updated successfully, but these errors were encountered: