n4kz / react-native-material-dropdown

Material dropdown with consistent behaviour on iOS and Android
Other
732 stars 598 forks source link

flex: 1 on things in renderBase makes them invisible #134

Closed russellrain closed 6 years ago

russellrain commented 6 years ago
renderBase={({ value }) => {
    return (
        <View style={{ flex: 1 }}>
          <TextInput
              style={[styles.inputEnabled, styles.dropdownBaseInput]}
              underlineColorAndroid='transparent'
              onChangeText={undefined}
              value={value && value !== '' ? value : 'Select Network'}
          />
          <Icon size={30} style={styles.icon} name={'lock'} />
        </View>
    );

Having an issue where I can't add flex: 1 to View in renderBase without it making all child elements in it disappear

russellrain commented 6 years ago

So I just used flexGrow instead of flex and that will work for my purposes