Browse Source

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

master
Lyubo Marinov 8 years ago
parent
commit
131e5af01e

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

1
 import React, { Component } from 'react';
1
 import React, { Component } from 'react';
2
 import { View } from 'react-native';
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
 import { Platform } from '../../react';
5
 import { Platform } from '../../react';
6
 import { ColorPalette } from '../../styles';
6
 import { ColorPalette } from '../../styles';
7
 
7
 

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save