react-native/React/Base
Arthur Lee 2d42c9eb4a [ReactNative] Added support for 3 digit hex colors | Arthur Lee
Summary:
This addition adds a check for whether a hex color is 3 or 6 digits. If it is 3 digits, it will expand the short form into 6 digits, just like in CSS. The additional benefit of having the length check is that hex colors of invalid lengths (like 4 digits) will be considered invalid. In CSS, invalid length hex colors returns white, but here I have logged an error through `RCTLogError`.
Closes https://github.com/facebook/react-native/pull/455
Github Author: Arthur Lee <arthur@arthurlee.me>

Test Plan: Tried a couple of colors in the sample app, like `#FACEB0`, `#F00`, etc.
2015-03-31 20:05:14 -08:00
..
RCTAssert.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTAssert.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTBridge.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTBridge.m [React Kit] Remove embarrassing TODOs 2015-03-26 10:33:05 -08:00
RCTBridgeModule.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTCache.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTCache.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTConvert.h [TextInput] returnKeyType, enablesReturnKeyAutomatically, secureTextEntry, more keyboardTypes 2015-03-30 18:13:30 -08:00
RCTConvert.m [ReactNative] Added support for 3 digit hex colors | Arthur Lee 2015-03-31 20:05:14 -08:00
RCTDevMenu.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTDevMenu.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTEventDispatcher.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTEventDispatcher.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTInvalidating.h [React Kit] Remove embarrassing TODOs 2015-03-26 10:33:05 -08:00
RCTJSMethodRegistrar.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTJavaScriptExecutor.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTKeyCommands.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTKeyCommands.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTLog.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTLog.m [React Kit] Remove embarrassing TODOs 2015-03-26 10:33:05 -08:00
RCTRedBox.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTRedBox.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTRootView.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTRootView.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTSparseArray.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTSparseArray.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTTouchHandler.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTTouchHandler.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTUtils.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTUtils.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00