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

Question: Cancel button? #31

Open
bvelasquez opened this issue Jun 9, 2020 · 3 comments
Open

Question: Cancel button? #31

bvelasquez opened this issue Jun 9, 2020 · 3 comments

Comments

@bvelasquez
Copy link
Contributor

Is there a way to add a cancel button to the date selection? Currently, if the user does not select a date range, they just get an error.

Thank you!

@mkausas
Copy link

mkausas commented Aug 19, 2020

I'm also interested in this!

@JeremyBradshaw7
Copy link

Yes it seems this important feature is missing.

@Harkindey
Copy link

This is how you close the modal with out selecting input.
Add a ref to the component and access the setModalVisible

 customButton={(onConfirm) => (
          <View style={{ flex: 1, marginHorizontal: 20, marginTop: -30 }}>
            <Button
              variant={'primary'}
              buttonText="Select Range"
              textColor={theme.primarySurface}
              onPress={onConfirm}
            />
            <Button
              variant={'transparent'}
              buttonText="Cancel"
              textColor={theme.primaryColor}
              onPress={() => ref.current.setModalVisible(false)}
            />
          </View>
        )}
      />

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

4 participants