react-native-ui-lib
react-native-ui-lib copied to clipboard
Typescript doesn't recognize my custom spacing attribute.
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
+1
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.