mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-11 22:32:38 +08:00
Use new hybrid inheritance for NativeArray and descendants
Differential Revision: D2516708 fb-gh-sync-id: 75bc2d7095ffe2c397d5ffb34b621b322b858c3e
This commit is contained in:
committed by
facebook-github-bot-6
parent
8251f1c905
commit
fb90ba6ded
@@ -22,15 +22,13 @@ public abstract class NativeArray {
|
||||
SoLoader.loadLibrary(ReactBridge.REACT_NATIVE_LIB);
|
||||
}
|
||||
|
||||
public NativeArray() {
|
||||
mHybridData = initHybrid();
|
||||
protected NativeArray(HybridData hybridData) {
|
||||
mHybridData = hybridData;
|
||||
}
|
||||
|
||||
@Override
|
||||
public native String toString();
|
||||
|
||||
private native HybridData initHybrid();
|
||||
|
||||
@DoNotStrip
|
||||
private HybridData mHybridData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user