Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 334 Bytes

File metadata and controls

18 lines (12 loc) · 334 Bytes

react-native-app-helpers/getRenderedKey

Gets the key of a rendered React element.

Usage

import { getRenderedKey } from "react-native-app-helpers";

// null.
setRenderedKey(<Text>A</Text>);

// `1234`.
setRenderedKey(<Text key={1234}>A</Text>);

// `Example Key`.
setRenderedKey(<Text key="Example Key">A</Text>);