[APP-615] COPPA-compliant signup (#570)

* Rework account creation to be COPPA compliant

* Fix lint

* Switch android datepicker to use the spinner mode

* Fix type signatures & usages
This commit is contained in:
Paul Frazee 2023-05-08 17:25:57 -05:00 committed by GitHub
parent cdfb1c7abf
commit 7a176b3fdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 254 additions and 52 deletions

View file

@ -35,6 +35,9 @@ export function Button({
onPress,
children,
testID,
accessibilityLabel,
accessibilityHint,
accessibilityLabelledBy,
}: React.PropsWithChildren<{
type?: ButtonType
label?: string
@ -42,6 +45,9 @@ export function Button({
labelStyle?: StyleProp<TextStyle>
onPress?: () => void
testID?: string
accessibilityLabel?: string
accessibilityHint?: string
accessibilityLabelledBy?: string
}>) {
const theme = useTheme()
const typeOuterStyle = choose<ViewStyle, Record<ButtonType, ViewStyle>>(
@ -133,7 +139,10 @@ export function Button({
style={[typeOuterStyle, styles.outer, style]}
onPress={onPressWrapped}
testID={testID}
accessibilityRole="button">
accessibilityRole="button"
accessibilityLabel={accessibilityLabel}
accessibilityHint={accessibilityHint}
accessibilityLabelledBy={accessibilityLabelledBy}>
{label ? (
<Text type="button" style={[typeLabelStyle, labelStyle]}>
{label}