GithubHelp home page GithubHelp logo

hamidhadi / react-native-stretchy Goto Github PK

View Code? Open in Web Editor NEW
238.0 6.0 31.0 30.58 MB

🤸‍♀️A ReactNative scrollable stretchy header component

License: MIT License

JavaScript 0.08% Java 0.57% Objective-C 0.38% Starlark 0.18% Ruby 0.36% TypeScript 98.42%
react-native header scroll ios stretchable stretchy-headers stretchy-components parallax expo parallax-scrolling

react-native-stretchy's People

Contributors

alekhinen avatar dependabot[bot] avatar dlferro avatar fivenp avatar hamidhadi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-native-stretchy's Issues

Background touchable

Hi, great parallax scroll!

Is there a way to make the background touchable? I understand the foreground can be touchable but the background parallax effect is more elegant. I was able to render a component by passing it as a "header" prop and changed the image animated background type (see below) but I'm still unable to get touch events firing, Is there a way to make the background touchable?

animatedImageBackground.js:
import { Animated, TouchableOpacity } from 'react-native';
export const AnimatedImageBackground = Animated.createAnimatedComponent(TouchableOpacity);

Animated Gif Demo?

The component sounds interesting, and I think I can imagine what it does... but it would be nice if you added an animated GIF so that we could see it before installing it.

Add blur to background image

Hi! I was looking for a way to add a blur effect to the background image in react-native-stretchy and couldn't find anything. It would be great if there was a way to do this! Thank you!

Accessing the ref in order to run scroll operations on lists

Hi !
I'm using this library since few months and everything was great so far.
I have tried to add a "scrollTo" usage on the scrollView but I got the "classic" errors related to refs.

Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()

<StretchyScrollView
      ref={(ref) => this.productsSectionList = ref}
>
  ....

How should I process to do such thing ?

Thanks !

Header Snap

Is it possible to snap to content after scroll event ?

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.