react-native-parallax-flatlist's People
react-native-parallax-flatlist's Issues
[ios, android] no parallax effect in release, works fine in debug
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?
Cannot read property "propTypes of undefined"
Hello, I just installed this component and I am getting this error in my console Cannot read property "propTypes of undefined"
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 ??
How can i implement onPress on flatlist
help plz
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.