lundi 17 décembre 2018

react native text component moving when checkbox is checked

when this checkbox is checked, the adjacent text is moved slightly to the left. Given that the ´position´ property is so limited in react native. How do it stop this from happening?

                       <View style={this.props.checkBoxWrapper}>
                            <CheckBox
                                title={''}
                                checked={this.state.checkedNews}
                                onPress={() => this.setState({ checkedNews: !this.state.checkedNews })}
                                containerStyle={this.props.checkboxContainerStyle}
                                checkedColor='white'
                            />
                            <Text style={this.props.checkBoxTextStyle}>{I18n.t(this.props.labels.checkBoxNewsDialog)}</Text>
                        </View>




Aucun commentaire:

Enregistrer un commentaire