NativeScript / nativescript-facebook

NativeScript plugin, wrapper of native Facebook SDK for Android and iOS
Apache License 2.0
79 stars 50 forks source link

[Android] Style native Facebook SDK button #202

Open jonasmeier1212 opened 5 years ago

jonasmeier1212 commented 5 years ago

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 commented 5 years ago

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