Skip to content

replace “renderEmptyView” with a configurable placeholder #24

New issue

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

Merged
merged 1 commit into from
Apr 14, 2018

Conversation

EyMaddis
Copy link

@EyMaddis EyMaddis commented Apr 13, 2018

Allows fixes for #23

Allows for implementations like:
apr-13-2018 13-07-35

          renderBackgroundPlaceholder={({ animatedValue }) => {
            return (
              <FancyHeader
                width={width}
                style={Styles.fancyHeader}
                contentStyle={Styles.fancyHeaderElements}
                rightElement={headerRight}
                leftElement={headerLeft}
                leftAnimatedOpacity={animatedValue.interpolate({
                  inputRange: [0, headerThreshold - 40],
                  outputRange: [1, 0],
                  extrapolate: 'clamp'
                })}
                maskColor={BaseColors.screenBackground}
              />
            )
          }}

I am not super happy with the description in the Readme, maybe a core contributor can clear things up.

@z4o4z
Copy link
Contributor

z4o4z commented Apr 14, 2018

Hi @EyMaddis, thanks again for great PR, you are doing really nice things!

@z4o4z z4o4z merged commit 572e565 into monterosalondon:master Apr 14, 2018
@z4o4z
Copy link
Contributor

z4o4z commented Apr 14, 2018

This feature available in the 1.8.0 version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants