Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,15 @@ export default function App() {
> This hook may not support all features of the library.
> This hooks does not support container queries or inheritance for children elements.

#### `useNativeCssVariable`
#### `useNativeVariable`

If you just require a CSS variable value, you can use the `useNativeCssVariable` hook:
If you just require a CSS variable value, you can use the `useNativeVariable` hook:

```ts
import { useNativeCssVariable } from 'react-native-css';
import { useNativeVariable } from 'react-native-css';

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

return (
<View style={{ backgroundColor: myColor }}>
Expand Down