* Dev dependecies * upgrade tinycolor2 * upgrade rn-placeholder * upgrade react-native@0.63.3 * Upgrade react-native-vector-icons * Upgrade react-native-screens * Upgrade react-native-safe-area-context * Upgrade react-native-reanimated * Upgrade react-native-permissions * Upgrade react-native-localize * Upgrade react-native-image-picker * Upgrade react-native-haptic-feedback * Upgrade react-native-gesture-handler * Upgrade react-native-file-viewer * Upgrade react-native-document-picker * Upgrade react-native-device-info * Upgrade react-native-calendars * Upgrade mime-db * Upgrade jail-monkey * Upgrade fuse.js * Upgrade emoji-regex * Upgrade deep-equal * Upgrade @react-navigation * Upgrade @react-native-community/netinfo * Upgrade @react-native-community/clipboard * Upgrade @react-native-community/cameraroll * Upgrade @react-native-community/async-storage * Upgrade @sentry/react-native * Upgrade @types/react-native * Upgrade jest
25 lines
1.5 KiB
Diff
25 lines
1.5 KiB
Diff
diff --git a/node_modules/react-native-vector-icons/android/src/main/java/com/oblador/vectoricons/VectorIconsModule.java b/node_modules/react-native-vector-icons/android/src/main/java/com/oblador/vectoricons/VectorIconsModule.java
|
|
index 9e666b4..5d5830b 100755
|
|
--- a/node_modules/react-native-vector-icons/android/src/main/java/com/oblador/vectoricons/VectorIconsModule.java
|
|
+++ b/node_modules/react-native-vector-icons/android/src/main/java/com/oblador/vectoricons/VectorIconsModule.java
|
|
@@ -46,7 +46,8 @@ public class VectorIconsModule extends ReactContextBaseJavaModule {
|
|
protected String createGlyphImagePath(String fontFamily, String glyph, Integer fontSize, Integer color) throws java.io.IOException, FileNotFoundException {
|
|
Context context = getReactApplicationContext();
|
|
File cacheFolder = context.getCacheDir();
|
|
- String cacheFolderPath = cacheFolder.getAbsolutePath() + "/";
|
|
+ String cacheFolderPath = cacheFolder.getAbsolutePath() + "/vectorIcons/";
|
|
+ File vectorIconsFolder = new File(cacheFolderPath);
|
|
|
|
float scale = context.getResources().getDisplayMetrics().density;
|
|
String scaleSuffix = "@" + (scale == (int) scale ? Integer.toString((int) scale) : Float.toString(scale)) + "x";
|
|
@@ -57,6 +58,10 @@ public class VectorIconsModule extends ReactContextBaseJavaModule {
|
|
String cacheFileUrl = "file://" + cacheFilePath;
|
|
File cacheFile = new File(cacheFilePath);
|
|
|
|
+ if (!vectorIconsFolder.exists()) {
|
|
+ vectorIconsFolder.mkdirs();
|
|
+ }
|
|
+
|
|
if(cacheFile.exists()) {
|
|
return cacheFileUrl;
|
|
}
|