android


React Native dynamic splash screen?


I would like to add a dynamic splash screen to my app that takes an image from an external webserver.
For Android I would usually use a mipmap and create a layout like this:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="#color/gray"/>
<item>
<bitmap
android:gravity="center"
android:src="#mipmap/splash_screen"/>
</item>
</layer-list>
The question is if I can download an image and store it to the mimap folders with ReactNative so that Android will take it on the next start?
Of course I'm open to alternative ideas.
Yes you can, and the easiest way is to bundle it with your project. For example with a project created using react-native init you should see the mipmaps in $(PROJECT_ROOT)/app/src/main/res.

Related Links

Is it possible to track when an app enters “Doze on the Go” (AKA Doze Light, Doze Extended, and Doze 2)?
wrong Uri when insert data on database
missing permissions required by BluetoothAdapter.isEnabled.BLUETOOTH
How to display data from SQLite database in different textviews as childs in Expandable ListView
Listen to ACTION_SCREEN_ON and ACTION_SCREEN_OFF
Unable to get provider - rarely crash on kitkat
Be warned when google fit start a session
Debugger not hitting break point in the android application
Data positioning in a TableLayout - Android Studio
Android request permission doesn't work for notifications permissions
What is the off-screen menu key in Android 4.x?
The Android RatingBar has “bad” threshold for certain devices, fix?
View pager not swipe smoothly
Custom linting lib in android
Not execute Volley JSON onResponse function
take a screenshot of a nested RelativeLayout

Categories

HOME
beautifulsoup
assembly
oracle12c
localization
polymer
apache-jena
google-spreadsheet
jax-rs
flex
newrelic
settings
nuget-package
mql5
categorical-data
ipmitool
angular-dart
shared-libraries
enterprise-architect
template-engine
soci
jmp
topology
apache2.4
scriptella
genexus-sd
comparable
carrierwave
scrollview
dst
android-sugarorm
magento-1.9.2.4
sessionstorage
connection-pool
linq-to-objects
apache-stanbol
magento-1.9.3
wmp
linqpad
monkey-testing
textsum
dtsearch
rserve
bluez
android-testing
css-transforms
reshape
template-toolkit
jtree
donations
cronexpression
slackware
webjars
uicolor
x-tag
synonym
expectations
xdoclet
firebase-security
kendo-upload
grgit
poppler
amiga
sip-server
universal-image-loader
raygun
unix-socket
menubar
modular
video-codecs
virtual-pc
sqlclr
intersect
tree-balancing
panda3d
thttpd
lambdaj
mysql-error-1205
w3c-geolocation
quotation-marks
ie-compatibility-mode
updatesourcetrigger
alsb
xslcompiledtransform

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App