react-native-material-kit icon indicating copy to clipboard operation
react-native-material-kit copied to clipboard

Select all checkbox method

Open jitenderchand1 opened this issue 8 years ago • 1 comments

We are rendering checkboxes in list view. I am setting rowData.status to true to all the list item but it is not working. however it is working when I switch the tab and come back to same tab again

<MKCheckbox checked={rowData.status} onPress={() => self.abc(rowData) }/>

jitenderchand1 avatar Sep 26 '16 12:09 jitenderchand1

It seems when you set rowData.status to true, it won't re-render the parent component. If that is the case I suggest to use state or connect the component to redux, It should solve the issue. PS: To get more information about connecting a component to redux check react-redux out. It's very handy.

navid-kalaei avatar Dec 17 '17 10:12 navid-kalaei