forked from software-mansion/react-native-screens
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added missing icon and launch screen to fabric example (software…
…-mansion#2268) ## Description This PR adds missing icon and launch screen to `FabricExample` app. After copying the icons from paper example i noticed there are icons for iPad and the example itself supports iPad platform. Thus I decided to add the iPad support to fabric example as well. ## Changes - added iOS icons and launch screen - added iPad support - added android icons and launch screen ## Screenshots / GIFs ### Before   ### After   ## Checklist - [x] Ensured that CI passes
- Loading branch information
Showing
54 changed files
with
187 additions
and
72 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
FabricExample/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
5 changes: 5 additions & 0 deletions
5
FabricExample/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
Binary file modified
BIN
+2.58 KB
(190%)
FabricExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.86 KB
FabricExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.86 KB
FabricExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.53 KB
(150%)
FabricExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+758 Bytes
(140%)
FabricExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.08 KB
FabricExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.06 KB
FabricExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.16 KB
(140%)
FabricExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.86 KB
(160%)
FabricExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.82 KB
FabricExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.37 KB
FabricExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.77 KB
(150%)
FabricExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.73 KB
(240%)
FabricExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.43 KB
FabricExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.4 KB
FabricExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9.6 KB
(190%)
FabricExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12.5 KB
(240%)
FabricExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.9 KB
FabricExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.1 KB
FabricExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12.7 KB
(180%)
FabricExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
FabricExample/android/app/src/main/res/values/ic_launcher_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#1B2445</color> | ||
</resources> |
7 changes: 7 additions & 0 deletions
7
FabricExample/android/app/src/main/res/xml/network_security_config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<network-security-config> | ||
<domain-config cleartextTrafficPermitted="true"> | ||
<domain includeSubdomains="true">10.0.2.2</domain> | ||
<domain includeSubdomains="true">localhost</domain> | ||
</domain-config> | ||
</network-security-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.63 KB
...cExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.63 KB
...ple/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.03 KB
...cExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+738 Bytes
...xample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-20~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.18 KB
FabricExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-29.png
Oops, something went wrong.
Binary file added
BIN
+3 KB
...cExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+3 KB
...ple/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x~ipad.png
Oops, something went wrong.
Binary file added
BIN
+4.89 KB
...cExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+1.18 KB
...xample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-29~ipad.png
Oops, something went wrong.
Binary file added
BIN
+4.17 KB
...cExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+4.17 KB
...ple/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x~ipad.png
Oops, something went wrong.
Binary file added
BIN
+7.51 KB
...cExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+1.63 KB
...xample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-40~ipad.png
Oops, something went wrong.
Binary file added
BIN
+7.51 KB
...mple/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png
Oops, something went wrong.
Binary file added
BIN
+11.9 KB
...mple/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png
Oops, something went wrong.
Binary file added
BIN
+10.8 KB
...e/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png
Oops, something went wrong.
Binary file added
BIN
+7.51 KB
FabricExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+11.3 KB
...xample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png
Oops, something went wrong.
Binary file added
BIN
+11.9 KB
FabricExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+115 KB
.../ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png
Oops, something went wrong.
Binary file added
BIN
+4.25 KB
...icExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png
Oops, something went wrong.
143 changes: 112 additions & 31 deletions
143
FabricExample/ios/FabricExample/Images.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,134 @@ | ||
{ | ||
"images" : [ | ||
"images": [ | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "20x20" | ||
"filename": "[email protected]", | ||
"idiom": "iphone", | ||
"scale": "2x", | ||
"size": "60x60" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "20x20" | ||
"filename": "[email protected]", | ||
"idiom": "iphone", | ||
"scale": "3x", | ||
"size": "60x60" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "29x29" | ||
"filename": "AppIcon~ipad.png", | ||
"idiom": "ipad", | ||
"scale": "1x", | ||
"size": "76x76" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "29x29" | ||
"filename": "AppIcon@2x~ipad.png", | ||
"idiom": "ipad", | ||
"scale": "2x", | ||
"size": "76x76" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "40x40" | ||
"filename": "AppIcon-83.5@2x~ipad.png", | ||
"idiom": "ipad", | ||
"scale": "2x", | ||
"size": "83.5x83.5" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "40x40" | ||
"filename": "[email protected]", | ||
"idiom": "iphone", | ||
"scale": "2x", | ||
"size": "40x40" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "60x60" | ||
"filename": "[email protected]", | ||
"idiom": "iphone", | ||
"scale": "3x", | ||
"size": "40x40" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "60x60" | ||
"filename": "AppIcon-40~ipad.png", | ||
"idiom": "ipad", | ||
"scale": "1x", | ||
"size": "40x40" | ||
}, | ||
{ | ||
"idiom" : "ios-marketing", | ||
"scale" : "1x", | ||
"size" : "1024x1024" | ||
"filename": "AppIcon-40@2x~ipad.png", | ||
"idiom": "ipad", | ||
"scale": "2x", | ||
"size": "40x40" | ||
}, | ||
{ | ||
"filename": "[email protected]", | ||
"idiom": "iphone", | ||
"scale": "2x", | ||
"size": "20x20" | ||
}, | ||
{ | ||
"filename": "[email protected]", | ||
"idiom": "iphone", | ||
"scale": "3x", | ||
"size": "20x20" | ||
}, | ||
{ | ||
"filename": "AppIcon-20~ipad.png", | ||
"idiom": "ipad", | ||
"scale": "1x", | ||
"size": "20x20" | ||
}, | ||
{ | ||
"filename": "AppIcon-20@2x~ipad.png", | ||
"idiom": "ipad", | ||
"scale": "2x", | ||
"size": "20x20" | ||
}, | ||
{ | ||
"filename": "AppIcon-29.png", | ||
"idiom": "iphone", | ||
"scale": "1x", | ||
"size": "29x29" | ||
}, | ||
{ | ||
"filename": "[email protected]", | ||
"idiom": "iphone", | ||
"scale": "2x", | ||
"size": "29x29" | ||
}, | ||
{ | ||
"filename": "[email protected]", | ||
"idiom": "iphone", | ||
"scale": "3x", | ||
"size": "29x29" | ||
}, | ||
{ | ||
"filename": "AppIcon-29~ipad.png", | ||
"idiom": "ipad", | ||
"scale": "1x", | ||
"size": "29x29" | ||
}, | ||
{ | ||
"filename": "AppIcon-29@2x~ipad.png", | ||
"idiom": "ipad", | ||
"scale": "2x", | ||
"size": "29x29" | ||
}, | ||
{ | ||
"filename": "AppIcon-60@2x~car.png", | ||
"idiom": "car", | ||
"scale": "2x", | ||
"size": "60x60" | ||
}, | ||
{ | ||
"filename": "AppIcon-60@3x~car.png", | ||
"idiom": "car", | ||
"scale": "3x", | ||
"size": "60x60" | ||
}, | ||
{ | ||
"filename": "AppIcon~ios-marketing.png", | ||
"idiom": "ios-marketing", | ||
"scale": "1x", | ||
"size": "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
"info": { | ||
"author": "xcode", | ||
"version": 1 | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
FabricExample/ios/FabricExample/Images.xcassets/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...xample/ios/FabricExample/Images.xcassets/react-native-screens-logo.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "react-native-screens-logo.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+10.4 KB
...mages.xcassets/react-native-screens-logo.imageset/react-native-screens-logo.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters