I am trying to make a checkbox item inside of each item of the agenda. I want to change the item property and rerender Agenda everytime a press the checkbox of each item.
Expected Behavior
I am trying to use setState after I change the property (false/true) of the item pressed and re-set it as a new list of items in state but agenda does not rerender itself as it should
Observed Behavior
set State does not rerender agenda even when the items filling agenda are used from state.
Description
I am trying to make a checkbox item inside of each item of the agenda. I want to change the item property and rerender Agenda everytime a press the checkbox of each item.
Expected Behavior
I am trying to use setState after I change the property (false/true) of the item pressed and re-set it as a new list of items in state but agenda does not rerender itself as it should
Observed Behavior
set State does not rerender agenda even when the items filling agenda are used from state.
Environment
react-native-calendars@1.220.0 react-native@0.61.4
Reproducible Demo
`import React, { Component } from 'react'; import { View, StyleSheet } from 'react-native'; import colors from '../constants/colors' import {Agenda} from 'react-native-calendars'; import { Container, Header, Content, Card, CardItem, Text, Right ,Body, CheckBox } from 'native-base';
export default class Home extends Component {
} const styles = StyleSheet.create({ item: { backgroundColor: 'white', flex: 1, borderRadius: 5, padding: 10, marginRight: 10, marginTop: 17 }, emptyDate: { height: 15, flex:1, paddingTop: 30 } });`