ReactNative.Styles
- Package
- purescript-reactnative
- Repository
- doolse/purescript-reactnative
React Native styles, see https://facebook.github.io/react-native/docs/style.html for the full documentation
#unsafeStyleProp Source
unsafeStyleProp :: forall a. String -> a -> StyleProp#staticStyles Source
staticStyles :: Array StyleProp -> StylesRegister an array of static styles, internally using React Native's StyleSheet.create function
#hairlineWidth Source
hairlineWidth :: Int#position Source
position :: Position -> StylePropposition in React Native is similar to regular CSS, but everything is set to relative by default, so absolute positioning is always just relative to the parent. If you want to position a child using specific numbers of logical pixels relative to its parent, set the child to have absolute position. If you want to position a child relative to something that is not its parent, just don't use styles for that. Use the component tree. See https://github.com/facebook/css-layout for more details on how position differs between React Native and CSS.
#backgroundColor Source
backgroundColor :: Color -> StyleProp#left Source
left :: Int -> StylePropleft is the number of logical pixels to offset the left edge of this component. It works similarly to left in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/left for more details of how left affects layout.
#right Source
right :: Int -> StylePropright is the number of logical pixels to offset the right edge of this component. It works similarly to right in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/right for more details of how right affects layout.
#top Source
top :: Int -> StyleProptop is the number of logical pixels to offset the top edge of this component. It works similarly to top in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/top for more details of how top affects layout.
#bottom Source
bottom :: Int -> StylePropbottom is the number of logical pixels to offset the bottom edge of this component. It works similarly to bottom in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/bottom for more details of how bottom affects layout.
#margin Source
margin :: Int -> StylePropSetting margin has the same effect as setting each of marginTop, marginLeft, marginBottom, and marginRight. See https://developer.mozilla.org/en-US/docs/Web/CSS/margin for more details.
#marginBottom Source
marginBottom :: Int -> StylePropmarginBottom works like margin-bottom in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom for more details.
#marginHorizontal Source
marginHorizontal :: Int -> StylePropSetting marginHorizontal has the same effect as setting both marginLeft and marginRight.
#marginLeft Source
marginLeft :: Int -> StylePropmarginLeft works like margin-left in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left for more details.
#marginRight Source
marginRight :: Int -> StylePropmarginRight works like margin-right in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right for more details.
#marginTop Source
marginTop :: Int -> StylePropmarginTop works like margin-top in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top for more details.
#marginVertical Source
marginVertical :: Int -> StylePropSetting marginVertical has the same effect as setting both marginTop and marginBottom.
#width Source
width :: Int -> StylePropwidth sets the width of this component. It works similarly to width in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/width for more details.
#height Source
height :: Int -> StylePropheight sets the height of this component. It works similarly to height in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/height for more details.
#maxHeight Source
maxHeight :: Int -> StylePropmaxHeight is the maximum height for this component, in logical pixels. It works similarly to max-height in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/max-height for more details.
#maxWidth Source
maxWidth :: Int -> StylePropmaxWidth is the maximum width for this component, in logical pixels. It works similarly to max-width in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/max-width for more details.
#minHeight Source
minHeight :: Int -> StylePropminHeight is the minimum height for this component, in logical pixels. It works similarly to min-height in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/min-height for more details.
#minWidth Source
minWidth :: Int -> StylePropminWidth is the minimum width for this component, in logical pixels. It works similarly to min-width in CSS, but in React Native you must use logical pixel units, rather than percents, ems, or any of that. See https://developer.mozilla.org/en-US/docs/Web/CSS/min-width for more details.
#overflow Source
overflow :: Overflow -> StylePropoverflow controls how a children are measured and displayed. overflow: hidden causes views to be clipped while overflow: scroll causes views to be measured independently of their parents main axis.It works likeoverflow` in CSS (default: visible). See https://developer.mozilla.org/en/docs/Web/CSS/overflow for more details.
#padding Source
padding :: Int -> StylePropSetting padding has the same effect as setting each of paddingTop, paddingBottom, paddingLeft, and paddingRight. See https://developer.mozilla.org/en-US/docs/Web/CSS/padding for more details.
#paddingBottom Source
paddingBottom :: Int -> StyleProppaddingBottom works like padding-bottom in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom for more details.
#paddingHorizontal Source
paddingHorizontal :: Int -> StylePropSetting paddingHorizontal is like setting both of paddingLeft and paddingRight.
#paddingLeft Source
paddingLeft :: Int -> StyleProppaddingLeft works like padding-left in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left for more details.
#paddingRight Source
paddingRight :: Int -> StyleProppaddingRight works like padding-right in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right for more details.
#paddingTop Source
paddingTop :: Int -> StyleProppaddingTop works like padding-top in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top for more details.
#paddingVertical Source
paddingVertical :: Int -> StylePropSetting paddingVertical is like setting both of paddingTop and paddingBottom.
#borderBottomWidth Source
borderBottomWidth :: Int -> StylePropborderBottomWidth works like border-bottom-width in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-width for more details.
#borderLeftWidth Source
borderLeftWidth :: Int -> StylePropborderLeftWidth works like border-left-width in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-width for more details.
#borderRightWidth Source
borderRightWidth :: Int -> StylePropborderRightWidth works like border-right-width in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-width for more details.
#borderTopWidth Source
borderTopWidth :: Int -> StylePropborderTopWidth works like border-top-width in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-width for more details.
#borderWidth Source
borderWidth :: Int -> StylePropborderWidth works like border-width in CSS. See https://developer.mozilla.org/en-US/docs/Web/CSS/border-width for more details.
#BorderStyle Source
newtype BorderStyle#solid Source
solid :: BorderStyle#borderStyle Source
borderStyle :: BorderStyle -> StyleProp#borderBottomColor Source
borderBottomColor :: Color -> StyleProp#borderColor Source
borderColor :: Color -> StyleProp#borderLeftColor Source
borderLeftColor :: Color -> StyleProp#borderRadius Source
borderRadius :: Int -> StyleProp#borderRightColor Source
borderRightColor :: Color -> StyleProp#borderTopColor Source
borderTopColor :: Color -> StyleProp#borderTopLeftRadius Source
borderTopLeftRadius :: Int -> StyleProp#borderTopRightRadius Source
borderTopRightRadius :: Int -> StyleProp#cover Source
cover :: ResizeMode#repeat Source
repeat :: ResizeMode#resizeMode Source
resizeMode :: ResizeMode -> StyleProp- Modules
- ReactNative.
API - ReactNative.
Android. API - ReactNative.
Android. Components - ReactNative.
Android. Components. ProgressBarAndroid - ReactNative.
Components - ReactNative.
Components. ActivityIndicator - ReactNative.
Components. Button - ReactNative.
Components. Image - ReactNative.
Components. ListView - ReactNative.
Components. Modal - ReactNative.
Components. NavigatorIOS - ReactNative.
Components. Picker - ReactNative.
Components. ScrollView - ReactNative.
Components. Slider - ReactNative.
Components. Switch - ReactNative.
Components. Text - ReactNative.
Components. TextInput - ReactNative.
Components. Touchable - ReactNative.
Components. TouchableNativeFeedback - ReactNative.
Components. View - ReactNative.
Events - ReactNative.
Internal. Undefinable - ReactNative.
Optional - ReactNative.
Platform - ReactNative.
PropTypes - ReactNative.
PropTypes. Color - ReactNative.
Styles - ReactNative.
Styles. Flex - ReactNative.
Styles. Image - ReactNative.
Styles. Text - ReactNative.
Unsafe. ApplyProps - ReactNative.
Unsafe. Components