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

Style Undefined Props error on using typescript + react native #195

Open
aneeshkapurtrackso opened this issue Oct 24, 2021 · 0 comments
Open

Comments

@aneeshkapurtrackso
Copy link

Issue summary

Add a short description of issue, preferably, a sentence.

Cannot read properties of undefined (reading 'style') Occurring at Text.proptypes and also at ViewPropTypes. Seems like missing support to expo or react native - typescript

Library versions

Steps to Reproduce

(Write your steps here:)

  1. Add a multiselect in any renderable page

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

Should render successfully.

Showing error on types.

(Write what happened. Add screenshots!)

Reproducible Code

(Paste exact code snippet and instructions to reproduce the issue.)

setSelectedStatus(itemValue) }> {statusList.map(type => )}
      </Picker>
      {isSuccess ?
      <View>
     <MultiSelect
      hideTags
      items={unitsData ? unitsData.elements : []}
      uniqueKey="id"
      onSelectedItemsChange={onSelectedUnitsChange}
      selectedItems={selectedUnits}
      selectText="Pick Items"
      searchInputPlaceholderText="Search Items..."
      onChangeInput={ (text)=> console.log(text)}
      altFontFamily="ProximaNova-Light"
      tagRemoveIconColor="#CCC"
      tagBorderColor="#CCC"
      tagTextColor="#CCC"
      selectedItemTextColor="#CCC"
      selectedItemIconColor="#CCC"
      itemTextColor="#000"
      displayKey="name"
      searchInputStyle={{ color: '#CCC' }}
      submitButtonColor="#CCC"
      submitButtonText="Submit"
    />  </View> : null}


      </View>
  
  </ScrollView>
     {showStartDate && (
    <DateTimePicker
      testID="dateTimePicker"
      value={startDate}
      mode='date'
      is24Hour={true}
      display="default"
      onChange={onStartDateChange}
    />
  )}
    {showEndDate && (
    <DateTimePicker
      testID="dateTimePicker"
      value={endDate}
      mode='date'
      is24Hour={true}
      display="default"
      onChange={onEndDateChange}
    />
  )}
    </AccountContainer>
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