mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-05 19:24:21 +00:00
fix(StylePropTypes): add missing values and props
This commit is contained in:
@@ -9,7 +9,7 @@ export default {
|
|||||||
position: PropTypes.oneOf([
|
position: PropTypes.oneOf([
|
||||||
'absolute',
|
'absolute',
|
||||||
'fixed',
|
'fixed',
|
||||||
'relative'
|
'relative' /*default*/
|
||||||
]),
|
]),
|
||||||
bottom: numberOrString,
|
bottom: numberOrString,
|
||||||
left: numberOrString,
|
left: numberOrString,
|
||||||
|
|||||||
@@ -1,28 +1,33 @@
|
|||||||
import { PropTypes } from 'react';
|
import { PropTypes } from 'react';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
color: PropTypes.string,
|
||||||
direction: PropTypes.oneOf([
|
direction: PropTypes.oneOf([
|
||||||
'auto', 'ltr', 'rtl'
|
'auto' /*default*/, 'ltr', 'rtl'
|
||||||
]),
|
]),
|
||||||
|
font: PropTypes.string,
|
||||||
fontFamily: PropTypes.string,
|
fontFamily: PropTypes.string,
|
||||||
fontSize: PropTypes.string,
|
fontSize: PropTypes.string,
|
||||||
fontWeight: PropTypes.oneOf([
|
|
||||||
'100', '200', '300', '400', '500', '600', '700', '800', '900',
|
|
||||||
'bold', 'normal'
|
|
||||||
]),
|
|
||||||
fontStyle: PropTypes.oneOf([
|
fontStyle: PropTypes.oneOf([
|
||||||
'normal', 'italic'
|
'inherit' /*default*/, 'normal', 'italic'
|
||||||
|
]),
|
||||||
|
fontWeight: PropTypes.oneOf([
|
||||||
|
'inherit' /*default*/, 'bold', 'normal',
|
||||||
|
'100', '200', '300', '400', '500', '600', '700', '800', '900'
|
||||||
]),
|
]),
|
||||||
letterSpacing: PropTypes.string,
|
letterSpacing: PropTypes.string,
|
||||||
lineHeight: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),
|
lineHeight: PropTypes.oneOfType([
|
||||||
|
PropTypes.number,
|
||||||
|
PropTypes.string
|
||||||
|
]),
|
||||||
textAlign: PropTypes.oneOf([
|
textAlign: PropTypes.oneOf([
|
||||||
'auto', 'left', 'right', 'center'
|
'auto' /*default*/, 'center', 'justify', 'left', 'right'
|
||||||
]),
|
]),
|
||||||
textDecoration: PropTypes.oneOf([
|
textDecoration: PropTypes.oneOf([
|
||||||
'none', 'underline'
|
'none' /*default*/, 'line-through', 'underline', 'underline line-through'
|
||||||
]),
|
]),
|
||||||
textTransform: PropTypes.oneOf([
|
textTransform: PropTypes.oneOf([
|
||||||
'capitalize', 'lowercase', 'none', 'uppercase'
|
'none' /*default*/, 'capitalize', 'lowercase', 'uppercase'
|
||||||
]),
|
]),
|
||||||
wordWrap: PropTypes.oneOf([
|
wordWrap: PropTypes.oneOf([
|
||||||
'break-word', 'normal'
|
'break-word', 'normal'
|
||||||
|
|||||||
Reference in New Issue
Block a user