monterosalondon / react-native-parallax-scroll

Parallax scroll view for react-native
MIT License
554 stars 62 forks source link

There is a blank on the right side of the picture. #31

Open ghost opened 6 years ago

ghost commented 6 years ago

Issue details

image

Steps to reproduce

I set the width of the background image to the width of the screen, but left a blank on the right. I tried to use the screen Width + 1 blank to disappear

Please specify which versions of the RN and ParallaxScroll

Affected platforms

Screenshots / Screencast / Code Snippets (Optional)

        <ParallaxScroll
          renderHeader={({animatedValue}) => this._renderHeader()}
          headerHeight={64}
          parallaxHeight={BG_HEIGHT}
          isHeaderFixed={true}
          headerFixedBackgroundColor={'#fff'}
          renderParallaxBackground={({animatedValue}) =>
            <ImageBackground
              style={{width: screenWidth, height: BG_HEIGHT}}
              source={require('../../images/temp/designerbox1.jpg')}/>}>
          <View style={{height: 1900}}>
          </View>
        </ParallaxScroll>