vyshakh / react-native-uaepass

React-native module for UAE Pass
MIT License
8 stars 4 forks source link

Android App to Web Scenario #9

Open mdazhar786 opened 3 weeks ago

mdazhar786 commented 3 weeks ago

Dear Mr. @vyshakh

Greeting

Currently in Android App to web scenarios, the UAE PASS login identifier page is not opening in full-screen mode. We kindly request to update & show the Android Login identifier page in full-screen mode similar to iOS.

Thank You. androida2w ios a2w

vyshakh commented 1 week ago

I tried some styling but am still not able to remove the margins. We can change the black transparency to white using the code below.

android/app/src/main/AndroidManifest.xml

-  <activity android:name="com.uaepass.LoginActivity"  android:launchMode="singleTask" android:exported="true" android:parentActivityName=".MainActivity" >
+  <activity android:name="com.uaepass.LoginActivity" android:launchMode="singleTask" android:exported="true" android:parentActivityName=".MainActivity" android:theme="@style/UAEPassWebviewThemeFullscreen" >

and then add style to android/app/src/main/res/values/styles.xml

<style name="UAEPassWebviewThemeFullscreen" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowIsFloating">false</item>
    <item name="android:windowBackground">@android:color/white</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:backgroundDimEnabled">false</item>
</style>

If you find a better fix for this issue, please raise a pull request.