Skip to content
Discussion options

You must be logged in to vote
...Platform.select({
    ios: {
        paddingVertical: 10,
    },
    android: {
        marignBottom: 20,
    },
} satisfies Partial<Record<PlatformOSType, ViewStyle>>)

You can force the type as Unistyles infers eveyrthing. You can satisfy the type.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jpudysz
Comment options

Answer selected by dccarmo
@dccarmo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants