gluestack / gluestack-ui

React & React Native Components & Patterns (import from library & copy-paste styles all the way to victory)
https://gluestack.io/
MIT License
1.86k stars 93 forks source link

Cant use gap tokens in contentContainerStyle of a ScrollView #1977

Open lhguerra opened 4 months ago

lhguerra commented 4 months ago

Description

When trying to set a gap with a token value in contentContainerStyle prop of a ScrollView component, I get a weird type error, like tokens are not allowed there

CodeSandbox/Snack link

No response

Steps to reproduce

No response

gluestack-ui Version

1.1.17

Platform

Other Platform

No response

Additional Information

image

lhguerra commented 3 months ago

Just got the same for padding, looks like no tokens are available for this container

surajahmed commented 3 months ago

@lhguerra You can try this solution. https://github.com/facebook/react-native/issues/36024#issuecomment-1411514404

lhguerra commented 3 months ago

@surajahmed I don't see any tokens there, my issue is about using tokens not the styling of the container.

surajahmed commented 3 months ago

@lhguerra, Support for tokens in contentContainerStyle is not working for some reason. We're working on it. Thanks for your patience.