GT2/GT2-Android/node_modules/react-native-svg/lib/extract/extractOpacity.js

5 lines
135 B
JavaScript
Raw Normal View History

export default function (opacity) {
const value = +opacity;
return (typeof value !== 'number' || isNaN(value)) ? 1 : value;
}