Closed deepankarXe closed 2 months ago
It works on RN 0.75. Please publish your styles.xml
Hello @zoontek , thanks for swift response
here's our style.xml
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
</style>
<!-- BootTheme should inherit from Theme.BootSplash or Theme.BootSplash.EdgeToEdge -->
<style name="BootTheme" parent="Theme.BootSplash.EdgeToEdge">
<!-- Apply color + style to the status bar (true = dark-content, false = light-content) -->
<item name="android:statusBarColor">@color/bootsplash_background</item>
<item name="android:windowLightStatusBar">true</item>
<item name="bootSplashBackground">@color/bootsplash_background</item>
<item name="bootSplashLogo">@drawable/bootsplash_logo</item>
<item name="postBootSplashTheme">@style/AppTheme</item>
</style>
</resources>
The first line is useless when using the edge-to-edge theme:
<item name="android:statusBarColor">@color/bootsplash_background</item>
Don't forget to clean your project (gradlew clean) before building it again.
Thanks, for the help @zoontek , we did a goofup in the build settings we turned off auto-linking, when we enabled it back it worked like a charm
the library works like a charm on RN 0.75
Thanks for the help :)
Before submitting a new issue
Bug summary
Getting below error when we upgraded from RN 0.72.7 to 0.75.3 with RN 0.72.7 we were using 5.5.3 of this library with RN 0.75.3 we are using 6.1.3 of this library
i am not a expert in android development but can't figure out what is happening wrong here. can some one tell what is happening ? and how to fix it
error
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction Android resource linking failed error: resource style/Theme.BootSplash.EdgeToEdge (aka com.myapp:style/Theme.BootSplash.EdgeToEdge) not found. com.myapp.app-mergeDebugResources-24:/values/values.xml:1497: error: style attribute 'attr/bootSplashBackground (aka com.myapp:attr/bootSplashBackground)' not found. com.myapp.app-mergeDebugResources-24:/values/values.xml:1498: error: style attribute 'attr/bootSplashLogo (aka com.myapp:attr/bootSplashLogo)' not found. com.myapp.app-mergeDebugResources-24:/values/values.xml:1499: error: style attribute 'attr/postBootSplashTheme (aka com.myapp:attr/postBootSplashTheme)' not found. error: failed linking references.
Library version
6.1.3
Environment info
Steps to reproduce
Reproducible sample code