react-nativescript
Version:
React renderer for NativeScript
22 lines • 826 B
JavaScript
/**
* An (unfinished) implementation of React Native's StyleSheet API.
* @see https://reactnative.dev/docs/stylesheet
*/
export var StyleSheet;
(function (StyleSheet) {
/**
* A convenience function for creating a reusable, type-checked record of RNSStyles.
*
* At present, its output is no different from a manually declared a style object.
* i.e. this API does not implement any optimisations like style deduplication
* across the app or anything. Though in future, it may do.
*
* @param styles An object keyed by classNames, whose values are Records of styles.
* @example { bigText: { fontSize: 72 } }
*/
function create(styles) {
return styles;
}
StyleSheet.create = create;
})(StyleSheet || (StyleSheet = {}));
//# sourceMappingURL=StyleSheet.js.map