Giter VIP home page Giter VIP logo

Comments (4)

lelandrichardson avatar lelandrichardson commented on July 23, 2024

I believe this is now fixed in 2.0. Please re-open if not.

from react-native-parallax-view.

fungilation avatar fungilation commented on July 23, 2024

Same, this is happening with latest RN 0.22. See attached for also how ScrollView is screwed up in layout (the background blue on the left and right should not be showing, with the ScrollView equivalent that's been replaced with ParallaxView).

screenshot 2016-04-02 15 55 45

from react-native-parallax-view.

lelandrichardson avatar lelandrichardson commented on July 23, 2024

@fungilation Can you paste in the snippet of code you used to generate this? That looks gnarly.

from react-native-parallax-view.

fungilation avatar fungilation commented on July 23, 2024

Below. And this is on latest react-native-parallax-view 2.x on npm when I first posted.

<ParallaxView stickyHeaderIndices={[1]} scrollsToTop={true} backgroundSource={{uri: 'http://i.kinja-img.com/gawker-media/image/upload/s--8r2VA0H2--/c_scale,fl_progressive,q_80,w_800/18n1on6bk3k92jpg.jpg'}} windowHeight={PixelRatio.roundToNearestPixel(Dimensions.get('window').height * 0.382)} header={
  <View style={styles.header}>
      <Text style={styles.headerText}>
          In mea menandri sapientem, quo gloriatur adolescens voluptatibus ei
      </Text>
  </View>
}>
  <Text style={styles.titleText}>Hello Swiper! Width: {Dimensions.get('window').width}</Text>
  <Text style={styles.instructions}>
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
    Press Cmd+R to reload,{'\n'}
    Cmd+D or shake for dev menu
    {'\n'}Double line break! History after save, nice VSCode{'\n'}{'\n'}
  </Text>
</ScrollView>

This is how it's supposed to look, with swapped for .
screenshot 2016-04-04 13 03 47

from react-native-parallax-view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.