Skip to content

Commit 9e1cae4

Browse files
authored
chore(docs): fix css var hook name (#250)
1 parent 571218e commit 9e1cae4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

186186
export default function App() {
187-
const myColor = useNativeCssVariable("--my-color");
187+
const myColor = useNativeVariable("--my-color");
188188

189189
return (
190190
<View style={{ backgroundColor: myColor }}>

0 commit comments

Comments
 (0)