File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -176,15 +176,15 @@ export default function App() {
176176> This hook may not support all features of the library.
177177> This hooks does not support container queries or inheritance for children elements.
178178
179- #### ` useNativeCssVariable `
179+ #### ` useNativeVariable `
180180
181- If you just require a CSS variable value, you can use the ` useNativeCssVariable ` hook:
181+ If you just require a CSS variable value, you can use the ` useNativeVariable ` hook:
182182
183183``` ts
184- import { useNativeCssVariable } from ' react-native-css' ;
184+ import { useNativeVariable } from ' react-native-css' ;
185185
186186export default function App() {
187- const myColor = useNativeCssVariable (" --my-color" );
187+ const myColor = useNativeVariable (" --my-color" );
188188
189189 return (
190190 < View style = {{ backgroundColor : myColor }}>
You can’t perform that action at this time.
0 commit comments