Sfoglia il codice sorgente

[RN] Fix a strange import of a feature by itself

master
Lyubo Marinov 8 anni fa
parent
commit
131e5af01e

+ 1
- 1
react/features/base/participants/components/Avatar.native.js Vedi File

@@ -1,7 +1,7 @@
1 1
 import React, { Component } from 'react';
2 2
 import { View } from 'react-native';
3
-import { CachedImage, ImageCache } from 'react-native-img-cache';
4 3
 
4
+import { CachedImage, ImageCache } from '../../../mobile/image-cache';
5 5
 import { Platform } from '../../react';
6 6
 import { ColorPalette } from '../../styles';
7 7
 

+ 1
- 1
react/features/mobile/image-cache/functions.js Vedi File

@@ -1,4 +1,4 @@
1
-import { ImageCache } from 'react-native-img-cache';
1
+import { ImageCache } from './';
2 2
 
3 3
 /**
4 4
  * Notifies about the successful download of an <tt>Image</tt> source. The name

+ 1
- 0
react/features/mobile/image-cache/index.js Vedi File

@@ -1,3 +1,4 @@
1 1
 export * from './functions';
2
+export * from './react-native-img-cache';
2 3
 
3 4
 import './middleware';

+ 2
- 3
react/features/mobile/image-cache/middleware.js Vedi File

@@ -1,7 +1,5 @@
1 1
 /* @flow */
2 2
 
3
-import { ImageCache } from 'react-native-img-cache';
4
-
5 3
 import { APP_WILL_MOUNT } from '../../app';
6 4
 import { CONFERENCE_FAILED, CONFERENCE_LEFT } from '../../base/conference';
7 5
 import {
@@ -13,7 +11,8 @@ import {
13 11
     PARTICIPANT_UPDATED
14 12
 } from '../../base/participants';
15 13
 import { MiddlewareRegistry } from '../../base/redux';
16
-import { prefetch } from '../../mobile/image-cache';
14
+
15
+import { ImageCache, prefetch } from './';
17 16
 
18 17
 /**
19 18
  * The indicator which determines whether avatar URLs are to be prefetched in

+ 1
- 0
react/features/mobile/image-cache/react-native-img-cache.android.js Vedi File

@@ -0,0 +1 @@
1
+export * from './react-native-img-cache.yes.js';

+ 1
- 0
react/features/mobile/image-cache/react-native-img-cache.ios.js Vedi File

@@ -0,0 +1 @@
1
+export * from './react-native-img-cache.yes.js';

+ 1
- 0
react/features/mobile/image-cache/react-native-img-cache.yes.js Vedi File

@@ -0,0 +1 @@
1
+export { CachedImage, ImageCache } from 'react-native-img-cache';

Loading…
Annulla
Salva