See #17798
}
  function getOwnersList(id: number): Array<Owner> | null {
    let fiber = findCurrentFiberUsingSlowPathById(id);
    if (fiber == null) {
      return null;
    }
    const {_debugOwner} = fiber;
    const owners = [
      {
        displayName: getDisplayNameForFiber(fiber) || 'Anonymous',
        id,
        type: getElementTypeForFiber(fiber),
      },
    ];
    if (_debugOwner) {
      let owner = _debugOwner;
      while (owner !== null) {
        owners.unshift({
          displayName: getDisplayNameForFiber(owner) || 'Anonymous',
          id: getFiberID(getPrimaryFiber(owner)),
          type: getElementTypeForFiber(owner),
        });
        owner = owner._debugOwner || null;
      }
    }
    return owners;
  }
   Fast path props lookup for React Native style editor.
   Could use inspectElementRaw() but that would require shallow rendering hooks components,
   and could also mess with memoization.