facebook/react-native#12649 (comment)
Default behavior. Android uses Android logo for the icon and iOS produces the place holder icon as expected.
iOS and Android platforms get same exact image for app icon as expected
const fs = require('fs') | |
const axios = require('axios'); | |
const path = require('path'); | |
const JSON_DIR = path.join(__dirname, 'json'); | |
const jsonFiles = fs.readdirSync(JSON_DIR).filter(dir => dir.includes('.json')) | |
gifNameGetter = async (previewUrl) => { |
facebook/react-native#12649 (comment)
Default behavior. Android uses Android logo for the icon and iOS produces the place holder icon as expected.
iOS and Android platforms get same exact image for app icon as expected
If your project has any issues with the native folders, you can rebuild them by deleting both the ios and android directories at the root level of your project and running this command:
$ react-native eject
Running this command will check if the ios and android directories exist and then rebuild whichever one is missing.
The first time you run this command it will spit out a configuration JSON file called app.json
. By default, app.json
will have 2 properties:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.tall{ | |
height: 1000px | |
} |
{ | |
"name": "js", | |
"version": "1.0.0", | |
"description": "", | |
"main": "fizzbuzz.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
{ | |
"name": "whatever", | |
"version": "1.0.0", | |
"main": "main.js", | |
"private": true, | |
"scripts": { | |
"build": "gulp and browserify", | |
"start": "" | |
}, | |
"keywords": [ |
'use strict'; | |
var production = false; | |
// Module Requires | |
var path = require('path'); | |
var gulp = require('gulp'); | |
var gulpif = require('gulp-if'); | |
var source = require('vinyl-source-stream'); | |
var browserify = require('browserify'); |
'use strict'; | |
var production = false; | |
// Module Requires | |
var path = require('path'); | |
var gulp = require('gulp'); | |
var gulpif = require('gulp-if'); | |
var source = require('vinyl-source-stream'); | |
var browserify = require('browserify'); |