wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.44k stars 706 forks source link

Typescript doesn't recognize my custom spacing attribute. #2859

Open ayech0x2 opened 8 months ago

ayech0x2 commented 8 months ago

Description

Typescript doesn't recognize my custom spacing attribute.

Related to

Code snippet

In the config file

Spacings.loadSpacings({
 customSpacing: 20,
});

In a stylesheet file

const styles = StyleSheet.create({
 container: {
  height: Spacings.customSpacing, // Property 'customSpacing' does not exist on type 'Spacings & { s1: number; s2:
 },
});

Environment

cameronmurphy commented 2 weeks ago

+1