Skip to content

Commit 889eed2

Browse files
committed
feat: add customizable label to GoogleSignInButton component
- Introduced a new 'label' prop to the GoogleSignInButton, allowing users to customize the button text. - Default label set to 'Sign in with Google' for improved user experience.
1 parent c558ee0 commit 889eed2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/google-signin/src/native/GoogleSignInButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type GoogleSignInButtonProps = {
99
onError?: (error: Error) => void;
1010
style?: StyleProp<ViewStyle>;
1111
disabled?: boolean;
12+
label?: string;
1213
};
1314

1415
export function GoogleSignInButton({
@@ -17,6 +18,7 @@ export function GoogleSignInButton({
1718
onError,
1819
style,
1920
disabled = false,
21+
label = 'Sign in with Google',
2022
}: GoogleSignInButtonProps) {
2123
const [isLoading, setIsLoading] = useState(false);
2224

@@ -74,7 +76,7 @@ export function GoogleSignInButton({
7476
color: '#3c4043',
7577
}}
7678
>
77-
Sign in with Google
79+
{label}
7880
</Text>
7981
</View>
8082
)}

0 commit comments

Comments
 (0)