SpiroKit for React Native 1.0.1 released

Search for a command to run...

No comments yet. Be the first to comment.
💡 This is the third part of the "Collecting payments" series. Before proceeding, make sure to read Part 1, Part 2 & Part 3 We've finally reached the last part of the series! With all the tedious aspects taken care of, we just need to connect everyt...

💡 This is the third part of the "Collecting payments" series. Before proceeding, make sure to read Part 1 and Part 2 Before diving into this third part, I highly recommend watching this video to become familiar with some essential RevenueCat conce...

💡 This is the third part of the "Collecting payments" series. Before proceeding, make sure to read Part 1 SpiroKit for SaaS In case you want to save weeks of painful hours of work & research on your next React Native app, checkout SpiroKit for Sa...

Introduction Creating a mobile app involves numerous challenges and time-consuming tasks that must be completed before we can release our app in the stores. In-app purchases and subscriptions are especially difficult examples of this. They require co...

Building apps take time Building a mobile app is a challenging task. From coming up with an idea, prototyping, and finally building the app, there are many things to consider and problems we'll have to figure out: How do we make sure the entire app ...

This new version includes IntelliSense improvements for the useTheme and useColorModeValue hooks.
useTheme improvementsuseTheme 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

fontSizes

letterSpacings

lineHeights

fontWeights

More about this hook here: https://docs.spirokit.com/?path=/docs/getting-started-hooks--use-theme
useColorModeValue improvementsuseColorModeValue 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:

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!