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

Dynamically display dropdown #84

Open
AgNm opened this issue Feb 23, 2018 · 0 comments
Open

Dynamically display dropdown #84

AgNm opened this issue Feb 23, 2018 · 0 comments

Comments

@AgNm
Copy link

AgNm commented Feb 23, 2018

How can I dynamically display dropdown values using datasource ?

  if (this.props.addBill != undefined) {
          const ds = new ListView.DataSource({
            rowHasChanged: (r1, r2) => r1 !== r2
          });

          this.dataSource = ds.cloneWithRows(this.props.addBill.ExpenseType);
        }
  <Dropdown
                                     labelFontSize='12'
                                     style={{fontSize : 14, fontFamily: Fonts.TitilliumWeb,}}
                                     data={companyCode}
                                  />
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

1 participant