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

Props not updating inside <SortableGrid> #46

Open
stefanilie opened this issue Apr 16, 2018 · 6 comments
Open

Props not updating inside <SortableGrid> #46

stefanilie opened this issue Apr 16, 2018 · 6 comments

Comments

@stefanilie
Copy link

Hi @ollija, I have several 'cell's inside this sortable grid. Some cells have props connected to a remote API. Apparently the cells that are inside the sortable_grid don't update and those which are outside do update.
My main question is: Do props inside are updatable?

<SortableGrid>
 <View style={styles.defaultCell} key={key_item}>
  <Text style={styles.cellTitle}>Availability</Text>
  <Text style={styles.cellValue}>{this.props.activity}%</Text>. //This doesn't update
 </View>
 </SortableGrid>
 <View style={styles.defaultCell} key={key_item}>
  <Text style={styles.cellTitle}>Availability</Text>
  <Text style={styles.cellValue}>{this.props.activity}%</Text>. //This does get updated
 </View>
@krhovsky
Copy link

Try install dependency from github repository, not from npm.

@ryanpatk
Copy link

ryanpatk commented May 13, 2018

@krhovsky that worked for me, thanks!

@fabianunger
Copy link

npm i react-native-sortable-grid@https://github.com/ollija/react-native-sortable-grid --save

@stueynet
Copy link

This still does not appear to be working for me. Trying to dynamically change the itemsPerRow with a button that changes local state. Are we sure this is still fixed?

@luan-nvg
Copy link

luan-nvg commented Aug 8, 2020

npm i react-native-sortable-grid@https://github.com/ollija/react-native-sortable-grid --save
solved the problem, but resulted in another, the movement behaves differently than expected

@luan-nvg
Copy link

luan-nvg commented Aug 8, 2020

This still does not appear to be working for me. Trying to dynamically change the itemsPerRow with a button that changes local state. Are we sure this is still fixed?

I have the same problem, managed to solve?

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

6 participants