react-native-table-component icon indicating copy to clipboard operation
react-native-table-component copied to clipboard

Error while updating property 'borderStyle' of a view managed by: RCTView

Open AnasAlamin opened this issue 5 years ago • 3 comments

I've updated my library and i tried to use borderStyle property but it's giving me this error on Android!

Error while updating property 'borderStyle' of a view managed by: RCTView

abi37_0_0.com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String

AnasAlamin avatar Apr 22 '20 13:04 AnasAlamin

Encountered same issue while replacing data.map with FlatList

<Table borderStyle={styles.borderStyle}>
  <Row
    data={state.tableHead}
    style={styles.head}
    textStyle={[styles.text, styles.headText]}
  />
</Table>
<View style={styles.dataWrapper}>
  <Table borderStyle={styles.borderStyle}>
      <FlatList
        data={state.data}
        renderItem={({item, index}) => (
          <Row
            key={index}
            data={item}
            style={[
              styles.row,
              index % 2 && {backgroundColor: '#F7F6E7'},
            ]}
            textStyle={styles.text}
          />
        )}
        keyExtractor={item => item}
      />
  </Table>
 </View>

wsamipw avatar May 06 '21 09:05 wsamipw

have an update on the case?

SKYDA avatar Jun 29 '21 08:06 SKYDA

Make sure the length of data that renders rows is larger than zero. { data.length > 0 && <Table... }

tqloc0311 avatar Nov 25 '21 17:11 tqloc0311