Renamed nativeHookIndex -> index

This commit is contained in:
Brian Vaughn committed 2019-02-21 08:59:46 -08:00
1 parent 8cd8b29015
commit e35819e68d
5 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -56,7 +56,7 @@ type HookViewProps = {|
|};
function HookView({ canEditHooks, hook, id, path = [] }: HookViewProps) {
const { name, nativeHookIndex, subHooks, value } = hook;
const { name, index, subHooks, value } = hook;
const bridge = useContext(BridgeContext);
const store = useContext(StoreContext);
@@ -126,7 +126,7 @@ function HookView({ canEditHooks, hook, id, path = [] }: HookViewProps) {
const rendererID = store.getRendererIDForElement(id);
bridge.send('overrideHook', {
id,
nativeHookIndex,
index,
path,
rendererID,
value,