Update react-native-vector-icons package to 5.0.0 for FontAwesome 5 (#222)
This commit is contained in:
parent
3da896d369
commit
55275e48de
7 changed files with 7 additions and 6 deletions
6
app/package-lock.json
generated
6
app/package-lock.json
generated
|
@ -5204,9 +5204,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-native-vector-icons": {
|
"react-native-vector-icons": {
|
||||||
"version": "4.6.0",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-vector-icons/-/react-native-vector-icons-4.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-native-vector-icons/-/react-native-vector-icons-5.0.0.tgz",
|
||||||
"integrity": "sha512-rpfhfPiXCK2PX1nrNhdxSMrEGB/Gw/SvKoPM0G2wAkSoqynnes19K0VYI+Up7DqR1rFIpE4hP2erpT1tNx2tfg==",
|
"integrity": "sha512-3ZmLGhQFk5QeHuttx0tOpghXhpVMGwXzb3pVaW/M8Qj0qkcg7koVyZmoR9vABQuxFC6KbM3l6/WLYZPh2aGfuQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"lodash": "^4.0.0",
|
"lodash": "^4.0.0",
|
||||||
"prop-types": "^15.5.10",
|
"prop-types": "^15.5.10",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"react": "16.2.0",
|
"react": "16.2.0",
|
||||||
"react-native": "0.55.3",
|
"react-native": "0.55.3",
|
||||||
"react-native-image-zoom-viewer": "^2.2.5",
|
"react-native-image-zoom-viewer": "^2.2.5",
|
||||||
"react-native-vector-icons": "^4.5.0",
|
"react-native-vector-icons": "^5.0.0",
|
||||||
"react-native-video": "2.0.0",
|
"react-native-video": "2.0.0",
|
||||||
"react-navigation": "^1.5.12",
|
"react-navigation": "^1.5.12",
|
||||||
"react-navigation-redux-helpers": "^1.0.1",
|
"react-navigation-redux-helpers": "^1.0.1",
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { Text, TouchableOpacity } from 'react-native';
|
import { Text, TouchableOpacity } from 'react-native';
|
||||||
import buttonStyle from '../../styles/button';
|
import buttonStyle from '../../styles/button';
|
||||||
import Colors from '../../styles/colors';
|
import Colors from '../../styles/colors';
|
||||||
import Icon from 'react-native-vector-icons/FontAwesome';
|
import Icon from 'react-native-vector-icons/FontAwesome5';
|
||||||
|
|
||||||
export default class Button extends React.PureComponent {
|
export default class Button extends React.PureComponent {
|
||||||
render() {
|
render() {
|
||||||
|
@ -32,6 +32,7 @@ export default class Button extends React.PureComponent {
|
||||||
if (icon && icon.trim().length > 0) {
|
if (icon && icon.trim().length > 0) {
|
||||||
textStyles.push(buttonStyle.textWithIcon);
|
textStyles.push(buttonStyle.textWithIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme === 'light') {
|
if (theme === 'light') {
|
||||||
textStyles.push(buttonStyle.textDark);
|
textStyles.push(buttonStyle.textDark);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {
|
||||||
TouchableOpacity
|
TouchableOpacity
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import Video from 'react-native-video';
|
import Video from 'react-native-video';
|
||||||
import Icon from 'react-native-vector-icons/FontAwesome';
|
import Icon from 'react-native-vector-icons/FontAwesome5';
|
||||||
import FileItemMedia from '../fileItemMedia';
|
import FileItemMedia from '../fileItemMedia';
|
||||||
import mediaPlayerStyle from '../../styles/mediaPlayer';
|
import mediaPlayerStyle from '../../styles/mediaPlayer';
|
||||||
|
|
||||||
|
|
BIN
src/main/assets/fonts/FontAwesome5_Brands.ttf
Normal file
BIN
src/main/assets/fonts/FontAwesome5_Brands.ttf
Normal file
Binary file not shown.
BIN
src/main/assets/fonts/FontAwesome5_Regular.ttf
Normal file
BIN
src/main/assets/fonts/FontAwesome5_Regular.ttf
Normal file
Binary file not shown.
BIN
src/main/assets/fonts/FontAwesome5_Solid.ttf
Normal file
BIN
src/main/assets/fonts/FontAwesome5_Solid.ttf
Normal file
Binary file not shown.
Loading…
Reference in a new issue