gluestack-ui icon indicating copy to clipboard operation
gluestack-ui copied to clipboard

Cant use gap tokens in contentContainerStyle of a ScrollView

Open lhguerra opened this issue 1 year ago • 4 comments

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

  • [X] Expo
  • [ ] React Native CLI
  • [ ] Next
  • [ ] Web
  • [ ] Android
  • [ ] iOS

Other Platform

No response

Additional Information

image

lhguerra avatar Mar 19 '24 15:03 lhguerra

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

lhguerra avatar Mar 20 '24 17:03 lhguerra

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

surajahmed avatar Mar 25 '24 05:03 surajahmed

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

lhguerra avatar Mar 25 '24 15:03 lhguerra

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

surajahmed avatar Apr 05 '24 12:04 surajahmed