mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 05:55:10 +00:00
Use eslint, add travis-ci
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import SerializablePath from 'react-native/Libraries/ART/ARTSerializablePath';
|
||||
|
||||
import _ from 'lodash';
|
||||
const newLine = /\n/g;
|
||||
const defaultFontFamily = '"Helvetica Neue", "Helvetica", Arial';
|
||||
const fontRegExp = /^\s*((?:(?:normal|bold|italic)\s+)*)(?:(\d+(?:\.\d+)?)[ptexm%]*(?:\s*\/.*?)?\s+)?\s*"?([^"]*)/i;
|
||||
@@ -58,7 +58,7 @@ function parseFontString(font) {
|
||||
}
|
||||
|
||||
function extractFont(font) {
|
||||
if (font == null) {
|
||||
if (_.isNil(font)) {
|
||||
return null;
|
||||
}
|
||||
if (typeof font === 'string') {
|
||||
|
||||
Reference in New Issue
Block a user