Home Reference Source Repository
public class | source

Button

Extends:

react-native~Component → Button

Constructor Summary

Public Constructor
public

Public Constructors

public constructor(props: object) source

Params:

NameTypeAttributeDescription
props object
props.value string

Button Text. If language is english, all letters should be capitalized.

props.disabled boolean
  • optional
  • default: false

if true, Button can't be pressed

props.theme enum(THEME_NAME)
  • optional
  • default: 'light'

Button Theme

props.primary enum(COLOR_NAME)
  • optional
  • default: PRIMARY

Primary color name

props.raised boolean
  • optional
  • default: false

Whether Button looks like raised or not. If in a Modal, should not be true

props.onPress function
  • optional

Function will be triggered when click the Button