react-native-parallax-view icon indicating copy to clipboard operation
react-native-parallax-view copied to clipboard

Error. Cannot read property 'number' of undefined.

Open kkotkkio opened this issue 7 years ago • 8 comments

        <ParallaxView
          backgroundSource={null}
          windowHeight={43}
          header={(
            <View style={styles.header}>
              <View style={styles.headSearch}>
                <TextInput
                  style={styles.searchTextInput}
                  placeholder="검색"
                  placeholderTextColor="#C2C2C2"
                  underlineColorAndroid='transparent'
                />
                <Ionicons style={styles.searchIcon} name="md-search" size={20} color="#C2C2C2"/>
              </View>
              <View style={styles.headFilter}>
                <TouchableOpacity>
                  <Image style={styles.filterIcon} source={require('../assets/images/ic_filter.png')}/>
                </TouchableOpacity>
              </View>
            </View>
          )}
          scrollableViewStyle={{ backgroundColor: 'red' }}
        >

But I've got error.

2018-01-25 5 16 36

What's the matter?

Thing to changing is one it is backgroundSource require('image!backgroundImage') -> null. I don't need backgroundSource and it's just white. but before to change is error too.

2018-01-25 5 27 02

And I tried to remove backgroundSource, but it's a same error (Cannot read 'number').

kkotkkio avatar Jan 25 '18 08:01 kkotkkio

same problem here! Error. Cannot read property 'number' of undefined

ghost avatar Feb 02 '18 19:02 ghost

Samething as soon as I import the lib

jamesst20 avatar Feb 17 '18 13:02 jamesst20

Same here!

hugoh59 avatar Feb 18 '18 18:02 hugoh59

Because the PropTypes in this project is imported with React.PropTypes which is not compatible with newer version of react native.

The correct way should be, import PropTypes from 'prop-types';

Please fix this!

sengminea avatar Mar 14 '18 07:03 sengminea

Fucking dickhead. if you are not going to fix the issues might as well not create the library. asshole @lelandrichardson

adrianhartanto0 avatar Sep 15 '19 10:09 adrianhartanto0

import PropTypes from 'prop-types';

lizandroconde avatar Jan 12 '20 04:01 lizandroconde

This repository doesn't seem to be maintained. I created the same library that solved this problem. https://github.com/100010/react-native-parallax-header-view Please check.

100010 avatar May 12 '20 08:05 100010

Same here!

xwg2015 avatar Aug 31 '20 05:08 xwg2015