Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit e927e53

Browse files
committed
Fix/Revert getColor function
1 parent cf8ac98 commit e927e53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/helpers.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Platform } from 'react-native';
2-
import processColor from 'processColor';
32
import { PRIMARY, COLOR } from './config';
43

54
/**
@@ -9,7 +8,7 @@ import { PRIMARY, COLOR } from './config';
98
*/
109
export function getColor(string) {
1110
if (string) {
12-
if (processColor(string) !== undefined)
11+
if (string.indexOf('#') > -1 || string.indexOf('rgba') > -1) {
1312
return string;
1413
}
1514

0 commit comments

Comments
 (0)