Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

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

Open
AnasAlamin opened this issue Apr 22, 2020 · 3 comments

Comments

@AnasAlamin
Copy link

AnasAlamin commented Apr 22, 2020

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

@wsamipw
Copy link

wsamipw commented May 6, 2021

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>

@SKYDA
Copy link

SKYDA commented Jun 29, 2021

have an update on the case?

@tqloc0311
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants