#android #react-native #expo
Вопрос:
Пытаюсь найти способ установить изображение вместо раздражающего белого экрана при запуске. Был бы очень благодарен за любые советы
Мое приложение.json
"splash": { "image": "./resources/images/welcome.png", "backgroundColor": "#000000" }
splashcreen.xml
lt;?xml version="1.0" encoding="utf-8"?gt; lt;!-- This file was created by '@expo/configure-splash-screen' and some of it's content shouldn't be modified by hand --gt; lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"gt; lt;item android:drawable="@color/colorPrimaryDark"/gt; lt;/layer-listgt;
styles.xml
lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?gt; lt;resources xmlns:tools="http://schemas.android.com/tools"gt; lt;style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"gt; lt;item name="android:windowDisablePreview"gt;truelt;/itemgt; lt;item name="android:textColor"gt;@android:color/blacklt;/itemgt; lt;item name="android:editTextStyle"gt;@style/ResetEditTextlt;/itemgt; lt;item name="colorPrimary"gt;@color/colorPrimarylt;/itemgt; lt;item name="colorPrimaryDark"gt;@color/colorPrimaryDarklt;/itemgt; lt;/stylegt; lt;style name="ResetEditText" parent="@android:style/Widget.EditText"gt; lt;item name="android:padding"gt;0dplt;/itemgt; lt;item name="android:textColorHint"gt;#c8c8c8lt;/itemgt; lt;item name="android:textColor"gt;@android:color/blacklt;/itemgt; lt;/stylegt; lt;style name="Theme.App.SplashScreen" parent="AppTheme"gt; lt;item name="android:windowBackground"gt;@drawable/splashscreenlt;/itemgt; lt;/stylegt; lt;/resourcesgt;