react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

Typescript doesn't recognize my custom spacing attribute.

Open ayech0x2 opened this issue 2 years ago • 1 comments

Description

Typescript doesn't recognize my custom spacing attribute.

Related to

  • [x] Typings

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

  • React Native version: 0.72.6
  • React Native UI Lib version: 7.12.2
  • Expo version: 49.0.21

ayech0x2 avatar Dec 19 '23 11:12 ayech0x2

+1

cameronmurphy avatar Aug 28 '24 07:08 cameronmurphy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 31 '25 23:01 stale[bot]