React Ape

React Ape

  • Docs
  • Contributing
  • Blog
  • GitHub
  • React

›Props

The Basics

  • Getting Started
  • Learning the Basics
  • Height and Width

Guides

  • Components and APIs
  • Navigation on Apps
  • Custom Components

Contributing

  • How to Contribute

Components

  • Image
  • Text
  • View

APIs

  • Dimensions
  • Platform
  • StyleSheet
  • Navigation

Props

  • Image Style Props
  • Text Style Props
  • View Style Props
Edit

View Style Props

Example

import React from "react";
import { View, StyleSheet } from "react-ape";

const ViewStyleProps = () => {
    return (
      <View style={styles.container}>
        <View style={styles.top} />
        <View style={styles.middle} />
        <View style={styles.bottom} />
      </View>
    );
}

const styles = StyleSheet.create({
  container: {
    justifyContent: "space-between",
    backgroundColor: "#fff",
    padding: 20,
    margin: 10,
  },
  top: {
    backgroundColor: "grey",
    borderWidth: 5,
    borderTopLeftRadius: 20,
    borderTopRightRadius: 20,
  },
  middle: {
    backgroundColor: "beige",
    borderWidth: 5,
  },
  bottom: {
    backgroundColor: "pink",
    borderWidth: 5,
    borderBottomLeftRadius: 20,
    borderBottomRightRadius: 20,
  },
});

export default ViewStyleProps;

Reference

Props

backgroundColor

Type
color (RGB, HSL or named colors according CSS3/SVG specification)

borderBottomColor

Type
color (RGB, HSL or named colors according CSS3/SVG specification)

borderBottomEndRadius

Type
number

borderBottomLeftRadius

Type
number

borderBottomRightRadius

Type
number

borderBottomStartRadius

Type
number

borderBottomWidth

Type
number

borderColor

Type
color (RGB, HSL or named colors according CSS3/SVG specification)

borderEndColor

Type
color (RGB, HSL or named colors according CSS3/SVG specification)

borderLeftColor

Type
color (RGB, HSL or named colors according CSS3/SVG specification)

borderLeftWidth

Type
number

borderRadius

If the rounded border is not visible, try applying overflow: 'hidden' as well.

Type
number

borderRightColor

Type
color (RGB, HSL or named colors according CSS3/SVG specification)

borderRightWidth

Type
number

borderStartColor

Type
color (RGB, HSL or named colors according CSS3/SVG specification)

borderStyle

Type
enum('solid', 'dotted', 'dashed')

borderTopColor

Type
color (RGB, HSL or named colors according CSS3/SVG specification)

borderTopEndRadius

Type
number

borderTopLeftRadius

Type
number

borderTopRightRadius

Type
number

borderTopStartRadius

Type
number

borderTopWidth

Type
number

borderWidth

Type
number

opacity

Type
number
← Text Style Props
  • Props
    • backgroundColor
    • borderBottomColor
    • borderBottomEndRadius
    • borderBottomLeftRadius
    • borderBottomRightRadius
    • borderBottomStartRadius
    • borderBottomWidth
    • borderColor
    • borderEndColor
    • borderLeftColor
    • borderLeftWidth
    • borderRadius
    • borderRightColor
    • borderRightWidth
    • borderStartColor
    • borderStyle
    • borderTopColor
    • borderTopEndRadius
    • borderTopLeftRadius
    • borderTopRightRadius
    • borderTopStartRadius
    • borderTopWidth
    • borderWidth
    • opacity
Docs
Getting StartedGuidesAPI Reference
Community
Who is Using React-Ape?Twitter
More
BlogGitHubStar React Ape on GitHub
Copyright © 2022 Raphael Amorim