You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a TypeError while using the @shopify/react-native-skia package in my React Native project. The error occurs when attempting to use the useClockValue hook. The error details are:
TypeError: 0, _reactNativeSkia.useClockValue is not a function (it is undefined)
The project is set up with the following key dependencies:
react-native: 0.73.2
expo: ~50.0.0
@shopify/react-native-skia: 1.7.3
Reproducible Code:
import{useClockValue}from'@shopify/react-native-skia';// Inside my componentconstclock=useClockValue();// Throws the TypeError
Project Environment:
React Native version: 0.73.2
Skia version: ^0.1.196
Expo version: ~50.0.0
Node version: [your version]
Steps to Reproduce:
Create a new React Native project with the following dependencies:
react-native: 0.73.2
expo: ~50.0.0
@shopify/react-native-skia: ^0.1.196
Import the useClockValue hook from @shopify/react-native-skia into your project.
Attempt to initialize the hook in a React Native component.
Run the project and observe the TypeError.
Expected Behavior:
The useClockValue hook should initialize without errors and return the current clock value.
Actual Behavior:
The app crashes with the error:
TypeError: 0, _reactNativeSkia.useClockValue is not a function (it is undefined)
Additional Context:
I verified that the package is installed correctly by running npm ls @shopify/react-native-skia.
The package seems to include the useClockValue export in its documentation, but it appears to be undefined at runtime.
My package.json includes the following relevant dependencies:
I encountered a
TypeError
while using the@shopify/react-native-skia
package in my React Native project. The error occurs when attempting to use theuseClockValue
hook. The error details are:The project is set up with the following key dependencies:
react-native
: 0.73.2expo
: ~50.0.0@shopify/react-native-skia
: 1.7.3Reproducible Code:
Project Environment:
Steps to Reproduce:
react-native
: 0.73.2expo
: ~50.0.0@shopify/react-native-skia
: ^0.1.196useClockValue
hook from@shopify/react-native-skia
into your project.TypeError
.Expected Behavior:
The
useClockValue
hook should initialize without errors and return the current clock value.Actual Behavior:
The app crashes with the error:
Additional Context:
npm ls @shopify/react-native-skia
.useClockValue
export in its documentation, but it appears to be undefined at runtime.Questions/Requests:
useClockValue
hook supported in the latest version of@shopify/react-native-skia
?System Information:
The text was updated successfully, but these errors were encountered: