mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 22:45:24 +08:00
Static type check for int params + migrate colorInt to just int.
Differential Revision: D2475618 committer: Service User <svcscm@fb.com>
This commit is contained in:
committed by
facebook-github-bot-9
parent
944fa4d635
commit
6c3fb77f30
@@ -30,15 +30,12 @@ public class WritableNativeMap extends ReadableNativeMap implements WritableMap
|
||||
@Override
|
||||
public native void putDouble(String key, double value);
|
||||
@Override
|
||||
public native void putInt(String key, int value);
|
||||
@Override
|
||||
public native void putString(String key, String value);
|
||||
@Override
|
||||
public native void putNull(String key);
|
||||
|
||||
@Override
|
||||
public void putInt(String key, int value) {
|
||||
putDouble(key, value);
|
||||
}
|
||||
|
||||
// Note: this consumes the map so do not reuse it.
|
||||
@Override
|
||||
public void putMap(String key, WritableMap value) {
|
||||
|
||||
Reference in New Issue
Block a user