What does StyleSheet.create do?What are refs in React Native?
The Stylesheet.create function in React Native is used for the following:
- It validates the keys and registers them to React
- It creates a StyleSheet style reference from the specified object.
- It allows you to send the style only once through the bridge while referring to all subsequent users through ID.
Short form for “reference”, Refs are used to access underlying DOM nodes or React elements within a React component.
BY Best Interview Question ON 18 Aug 2020