Skip to content

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

Open
@aneeshkapurtrackso

Description

@aneeshkapurtrackso

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions