Skip to content
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

Error. Cannot read property 'number' of undefined. #62

Open
kkotkkio opened this issue Jan 25, 2018 · 8 comments
Open

Error. Cannot read property 'number' of undefined. #62

kkotkkio opened this issue Jan 25, 2018 · 8 comments

Comments

@kkotkkio
Copy link

kkotkkio commented Jan 25, 2018

        <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 kkotkkio changed the title Error. undefined 'number' Error. Cannot read property 'number' of undefined. Jan 25, 2018
@ghost
Copy link

ghost commented Feb 2, 2018

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

@jamesst20
Copy link

Samething as soon as I import the lib

@hugoh59
Copy link

hugoh59 commented Feb 18, 2018

Same here!

@sengminea
Copy link

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!

@adrianhartanto0
Copy link

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

@lizandroconde
Copy link

import PropTypes from 'prop-types';

@100010
Copy link

100010 commented May 12, 2020

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.

@xwg2015
Copy link

xwg2015 commented Aug 31, 2020

Same here!

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

No branches or pull requests

8 participants