Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android crash: given color XXX isn't a valid rgb or rgba color #13

Open
joncursi opened this issue Nov 15, 2017 · 1 comment
Open

Android crash: given color XXX isn't a valid rgb or rgba color #13

joncursi opened this issue Nov 15, 2017 · 1 comment

Comments

@joncursi
Copy link

Hi! I'm hitting the following error in production on Android. My best guess is that it's coming from this library, and that as the colors are changing, a negative value is getting introduced into the rgba color picker:

com.facebook.react.common.JavascriptException: Error: given color (rgba(-3, 196, 159, 1)) isn't a valid rgb or rgba color
This error is located at:
in t
in n
in t
in RCTView
in Unknown
in InjectIntl(Component)
in Connect(InjectIntl(Component))
in RCTView
in n
in withAnimatable(Component)
in r
in Unknown
in t
in Connect(t)
in Connect(Connect(t))
in RCTView
in RCTView
in n
in IntlProvider
in r
in e
in e
in t
in RCTView
in RCTView
in t, stack:
exports@2634:273
<unknown>@2630:1040
value@2630:1008
f@128:26717
c@128:26587
T@128:29376
l@128:60519
d@129:74
h@129:1017
T@129:3770
P@129:3134
enqueueForceUpdate@128:21706
forceUpdate@24:3076
i@284:1681
value@272:1380
<unknown>@260:186
value@148:1051
n@260:158
value@260:3746
<unknown>@260:3422
value@281:1809
u@108:542
callTimers@108:2658
value@103:2963
<unknown>@103:284
value@103:2413
callFunctionReturnFlushedQueue@103:256
at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java
  at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException (ExceptionsManagerModule.java:40)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:363)
  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:162)
  at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
  at android.os.Handler.handleCallback (Handler.java:739)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:31)
  at android.os.Looper.loop (Looper.java:152)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run (MessageQueueThreadImpl.java:194)
  at java.lang.Thread.run (Thread.java:818)
@tahatag
Copy link

tahatag commented Apr 23, 2018

You used the following color
rgba(-3, 196, 159, 1)
rgb colors start at 0 and end at 255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants