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

Dropdown towards the bottom of the screen shows up blank #27

Closed
dekkofilms opened this issue Mar 6, 2017 · 5 comments
Closed

Dropdown towards the bottom of the screen shows up blank #27

dekkofilms opened this issue Mar 6, 2017 · 5 comments

Comments

@dekkofilms
Copy link

Right now I'm putting the dropdown down towards the bottom of the address form, for a user to select a country. However, when I click on the options it is just blank. I realized if I attempted to scroll past the view visible, it is under everything (but not reachable). Right now, I have just copied and pasted the exact code from the README, so any thoughts or help would be appreciated.

          <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center'}}>
            <Select
              width={250}
              ref="SELECT1"
              optionListRef={this._getOptionList.bind(this)}
              defaultValue="Select a Province in Canada ..."
              onSelect={this._canada.bind(this)}>
              <Option value = {{id : "alberta"}}>Alberta</Option>
              <Option>British Columbia</Option>
              <Option>Manitoba</Option>
              <Option>New Brunswick</Option>
              <Option>Newfoundland and Labrador</Option>
              <Option>Northwest Territories</Option>
              <Option>Nova Scotia</Option>
              <Option>Nunavut</Option>
              <Option>Ontario</Option>
              <Option>Prince Edward Island</Option>
              <Option>Quebec</Option>
              <Option>Saskatchewan</Option>
              <Option>Yukon</Option>
            </Select>
            <Text>Selected Canada's province: {this.state.canada}</Text>
            <OptionList ref="OPTIONLIST"/>
          </View>

With the appropriate functions needed in the container itself.

Before click:
screen shot 2017-03-06 at 8 44 10 am

After click:
screen shot 2017-03-06 at 8 44 16 am

@gs-akhan
Copy link
Owner

gs-akhan commented Mar 6, 2017

Hi,
Please try this. Simple and take entire screen and shows selection

https://github.com/gs-akhan/react-native-chooser

@016chiang
Copy link

Example is not working.

screen shot 2017-12-08 at 2 44 55 pm

@im4eversmrt
Copy link

same issue here , undefined is not an object .

@ghost
Copy link

ghost commented Mar 31, 2018

Same issue

@gs-akhan
Copy link
Owner

Hi, This is because of deprecated prop_types.. :( I am sorry I did not update the package.

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

4 participants