Package Exports
- react-native-text
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-text) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Native Text
About
React Native Text scales the font size based on a device width.
Get Started
npm install --save react-native-text- Example usage:
import React, { PropTypes } from 'react';
import { StyleSheet } from 'react-native';
import ScalableText from 'react-native-text';
const WelcomeText = ({ text }) => (
<ScalableText style={styles.text}>{text}</ScalableText>
);
WelcomeText.propTypes = {
text: PropTypes.string.isRequired
};
const styles = StyleSheet.create({
text: {
color: 'tomato',
fontSize: 28
}
});
export default WelcomeText;