Giter Club home page Giter Club logo

react-native-parallax-flatlist's People

Contributors

davrosull 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

Watchers

 avatar  avatar  avatar

react-native-parallax-flatlist's Issues

Can't find variable: ParallaxImage

import React from 'react';
import { StyleSheet, Text, View ,Image, TouchableOpacity} from 'react-native';
import EStyleSheet from 'react-native-extended-stylesheet';
import FlatList ,{ ParallaxImage } from 'react-native-parallax-flatlist';
import data from '../data.json';

export default class ArticleItem extends React.Component {
render() {
return(
<FlatList
data={data.items}
renderItem={(item)=><View style={{height: 200,}}>
<ParallaxImage
style={[StyleSheet.absoluteFill]}
source={{ uri: item.item.snippet.thumbnails.medium.url }}
parallaxFactor={0.2}
/>
}
keyExtractor={(item)=>item.id}
ItemSeparatorComponent={()=><View style={{height:5,backgroundColor:'#f1f1f1'}}/>}
/>
);
}

}

here is my code. I'm using expo for the development on android.
getting the following error: Can't find variable: ParallaxImage

TypeError: Cannot read property 'type' of undefined

Hi there, I am try to adding to project. But always get error screen. In applyPropsToParallaxImages function, children is always equal to undefined, so let the code can not find children.type.
So I add the code if if (!children) { return children; }, the parallax won't work.
May I ask how to fix it?

Warning: Failed child context type: Invalid child context `virtualizedCell.cellKey`

i got a warning
ExceptionsManager.js:73 Warning: Failed child context type: Invalid child context virtualizedCell.cellKey of type number supplied to CellRenderer, expected string.
in CellRenderer (at VirtualizedList.js:668)
in RCTScrollContentView (at ScrollView.js:793)
in RCTScrollView (at ScrollView.js:889)
in ScrollView (at VirtualizedList.js:998)
in VirtualizedList (at FlatList.js:640)
in FlatList (at createAnimatedComponent.js:147)
in AnimatedComponent (at FlatList.js:71)
in FlatList (at Home.js:103)
in Home (at renderApplication.js:35)
in RCTView (at View.js:78)
in View (at AppContainer.js:102)
in RCTView (at View.js:78)
in View (at AppContainer.js:122)
in AppContainer (at renderApplication.js:34)

what should i do ??

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.