# SpiroKit for React Native 1.0.1 released

This new version includes IntelliSense improvements for the `useTheme` and `useColorModeValue` hooks.

# Resources
- If you are interested in getting your SpiroKit license, please [visit our website](https://bit.ly/3V9tb3s)
- Want to learn more about SpiroKit before buying? [Visit our public documentation site](https://docs.spirokit.com)

## `useTheme` improvements

`useTheme` is a custom hook inherited from NativeBase that allows you to access the theme object from the global context. This is useful when you need to get the value for a SpiroKit token like `primary.500` or `emerald.700`.

This hook was already available with SpiroKit 1.0.0, but I made a slight improvement so you can get IntelliSense for the following tokens:

- colors
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669250135164/TYYHLMqoz.png align="left")

- fontSizes
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669250112923/ElVEjkavI.png align="left")

- letterSpacings
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669250091737/ZXtLHcQE_.png align="left")

- lineHeights
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669250071877/Lxq5STb50.png align="left")

- fontWeights 
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669250025485/qVEkUkbF0.png align="left")

More about this hook here:
https://docs.spirokit.com/?path=/docs/getting-started-hooks--use-theme

## `useColorModeValue` improvements

`useColorModeValue` is another custom hook inherited from NativeBase that can retrieve a value from parameters passed based on the active color mode (light/dark). SpiroKit also adds a third optional parameter that allows you to override the global color mode for a specific scenario.

This hook was already available with SpiroKit 1.0.0, but now you will get IntelliSense both for "light" and "dark" parameters:
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669249990492/viDv5Eh8V.png align="left")

More about this hook here:
https://docs.spirokit.com/?path=/docs/getting-started-hooks--use-color-mode-value

I hope you enjoy these few quality-of-life improvements.

Happy coding!
