NativeStyleEditorWrapper() — react Function Reference
Architecture documentation for the NativeStyleEditorWrapper() function in index.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD f8b540d3_bc3e_e3c6_9e28_7a862ffe4199["NativeStyleEditorWrapper()"] a9cbaa5a_1a08_c395_56b8_61ce5609ff01["index.js"] f8b540d3_bc3e_e3c6_9e28_7a862ffe4199 -->|defined in| a9cbaa5a_1a08_c395_56b8_61ce5609ff01 style f8b540d3_bc3e_e3c6_9e28_7a862ffe4199 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/index.js lines 22–43
export default function NativeStyleEditorWrapper(): React.Node {
const store = useContext(StoreContext);
const subscription = useMemo(
() => ({
getCurrentValue: () => store.supportsNativeStyleEditor,
subscribe: (callback: Function) => {
store.addListener('supportsNativeStyleEditor', callback);
return () => {
store.removeListener('supportsNativeStyleEditor', callback);
};
},
}),
[store],
);
const supportsNativeStyleEditor = useSubscription<boolean>(subscription);
if (!supportsNativeStyleEditor) {
return null;
}
return <NativeStyleEditor />;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does NativeStyleEditorWrapper() do?
NativeStyleEditorWrapper() is a function in the react codebase, defined in packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/index.js.
Where is NativeStyleEditorWrapper() defined?
NativeStyleEditorWrapper() is defined in packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/index.js at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free