bamlab / react-native-make

A collection of everyday React Native CLI tools
MIT License
761 stars 87 forks source link

fix: Repair Android styles.xml Code indentation causes repeated additions styles code #68

Open PBK-B opened 3 years ago

PBK-B commented 3 years ago

If the user code is formatted and the indentation is different, the style code will be added multiple times.

截屏2021-07-01 下午7 25 13

After formatting the code styles.xml file

<resources>

<style name="SplashScreenTheme" parent="SplashScreen_SplashTheme">
    <item name="colorPrimaryDark">@color/splashprimary</item>
</style>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="android:textColor">#000000</item>
    <item name="android:windowTranslucentStatus">true</item>
</style>

</resources>

You can reproduce it by using react-native-make again. Enjoy your work and look forward to your reply.