jpudysz / react-native-unistyles

Level up your React Native StyleSheet

Home Page:https://unistyl.es

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Cannot convert undefined or null to object" when `shadowOffset` is undefined

hbriese opened this issue · comments

Description

The error Cannot convert undefined or null to object is thrown when shadowOffset style is present by undefined

Steps to reproduce

function useTest() {
    useStyles(stylesheet);
}

const stylesheet = createStylesheet({
    test: {
        shadowOffset: undefined,
    },
});

Snack or a link to a repository (optional)

No response

Unistyles version

1.1.1

React Native version

0.72.5

Platforms

Android, iOS, React Native Web

Thanks for the report @hbriese and for finding this case.

Fxied in #69