nativescript-facebook icon indicating copy to clipboard operation
nativescript-facebook copied to clipboard

[Android] Style native Facebook SDK button

Open jonasmeier1212 opened this issue 6 years ago • 1 comments

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" />

jonasmeier1212 avatar Jul 07 '19 17:07 jonasmeier1212

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

elena-p avatar Jul 10 '19 15:07 elena-p