ALL_USES.md

March 6, 2020 ยท View on GitHub

Default

<Counters />

Custom

/*
 * Used Params
 * buttonStyle, buttonTextStyle, countTextStyle
 */
 
 <Counters
   buttonStyle={{
     borderColor: '#333',
     borderWidth: 2,
   }}
   buttonTextStyle={{
     color: '#333',
   }}
   countTextStyle={{
     color: '#333',
   }}
 />

Radius

/*
 * Used Params
 * buttonStyle, buttonTextStyle, countTextStyle
 */
 
 <Counters
   buttonStyle={{
     borderColor: '#333',
     borderWidth: 2,
     borderRadius: 25
   }}
   buttonTextStyle={{
     color: '#333',
   }}
   countTextStyle={{
     color: '#333',
   }}
 />

Text

/*
 * Used Params
 * buttonStyle, buttonTextStyle, countTextStyle
 */
 
 <Counters
  plus={'Add'}
  minus={'Remove'}
  buttonStyle={{
    width: 100
  }}
 />