We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Usually PIN code screens has a "cancel" option. How can I add a cancel button at bottom right corner?
The text was updated successfully, but these errors were encountered:
I solved the problem by putting the PinView in another View (or Content in NativeBase).
render() { return ( <Modal animationType="slide" transparent={false} visible={this.state.visible} onRequestClose={() => { Alert.alert("Modal has been closed."); }} > <Content contentContainerStyle={{ flex: 1, alignContent: "center", justifyContent: "center" }} > <Text style={{ fontSize: 25, color: "red", alignSelf: "center", marginBottom: 20 }} > Enter Passcode </Text> <PinView onComplete={(val, clear) => { clear(); this.setState({ pinValue: val }); this.setState({ visible: false }); }} pinLength={4} /> <Button transparent style={{ alignSelf: "flex-end", marginRight: 60 }} onPress={() => this.setState({ visible: false })} > <Text style={{ fontSize: 16 }}>Cancel</Text> </Button> </Content> </Modal> ); }
Sorry, something went wrong.
Hi , I think your wish about Cancel button is for your Modal. Not PinView package. PinView package is not providing such this feature.
No branches or pull requests
Usually PIN code screens has a "cancel" option. How can I add a cancel button at bottom right corner?
The text was updated successfully, but these errors were encountered: