Skip to content

[Android] Style native Facebook SDK button #202

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

Open
jonasmeier1212 opened this issue Jul 7, 2019 · 1 comment
Open

[Android] Style native Facebook SDK button #202

jonasmeier1212 opened this issue Jul 7, 2019 · 1 comment
Labels

Comments

@jonasmeier1212
Copy link

Is it somehow possible to change white height and width of the native button?
I didn't found a way to do it, but the Facebook SDK allows to set it:

<com.facebook.login.widget.LoginButton
    android:id="@+id/login_button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    android:layout_marginTop="30dp"
    android:layout_marginBottom="30dp" />
@elena-p
Copy link
Contributor

elena-p commented Jul 10, 2019

Hi @Bobby1212,

I have marked this as a feature request.
nativescript-facebook plugin wraps the native Facebook SDK, so we could benefit from all its capabilities.
We love pull requests and we would highly appreciate it, if you decide to improve the login button styling. Here is a possible starting point - https://github.com/NativeScript/nativescript-facebook/blob/master/src/ui/login-button.android.ts#L9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants