Back to React Native Paper

Badge

docs/public/2.0/badge.html

5.15.1698 B
Original Source

Badge

Badges are small status descriptors for UI elements. A badge consists of a small circle, typically containing a number or other short set of characters, that appears in proximity to another object.

Usage

js
import * as React from 'react';
import { Badge } from 'react-native-paper';

const MyComponent = () => (
  <Badge>3</Badge>
);

export default MyComponent;

Props

visible Type: boolean

Default value: true

Whether the badge is visible

children Type: string | number

Content of the Badge.

size Type: number

Default value: 20

Size of the Badge.

style Type: any

theme Type: Theme