|
@@ -5,14 +5,16 @@ import { CachedImage, ImageCache } from 'react-native-img-cache';
|
5
|
5
|
import { Platform } from '../../react';
|
6
|
6
|
import { ColorPalette } from '../../styles';
|
7
|
7
|
|
8
|
|
-// FIXME @lyubomir: The string images/avatar2.png appears three times in our
|
9
|
|
-// source code at the time of this writing. Firstly, it presents a maintenance
|
10
|
|
-// obstacle which increases the risks of inconsistency. Secondly, it is
|
11
|
|
-// repulsive (when enlarged, especially, on mobile/React Native, for example).
|
12
|
8
|
/**
|
13
|
9
|
* The default image/source to be used in case none is specified or the
|
14
|
10
|
* specified one fails to load.
|
15
|
11
|
*
|
|
12
|
+ * XXX The relative path to the default/stock (image) file is defined by the
|
|
13
|
+ * <tt>const</tt> <tt>DEFAULT_AVATAR_RELATIVE_PATH</tt>. Unfortunately, the
|
|
14
|
+ * packager of React Native cannot deal with it early enough for the following
|
|
15
|
+ * <tt>require</tt> to succeed at runtime. Anyway, be sure to synchronize the
|
|
16
|
+ * relative path on Web and mobile for the purposes of consistency.
|
|
17
|
+ *
|
16
|
18
|
* @private
|
17
|
19
|
* @type {string}
|
18
|
20
|
*/
|