1.0.1 • Published 5 years ago

rn-broadcast-view v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

BroadcastView

A high quality react native component backed by custom native iOS and Android views.

Installation

  1. Add

    • npm: npm install --save rn-broadcast-view
    • yarn: yarn add rn-broadcast-view
  2. Linking

For older React native versions ( < 0.60 ) you need to link the library:
For newer React native versions ( >= 0.60 ) you need to install pods for iOS:
  • cd ios && pod install && cd ..
  • For android everything works out of the box

Usage

BroadcastView should have fixed width and height.

import BroadcastView from 'rn-broadcast-view';

...

<BroadcastView style={{width: 100, height: 100}} />

...

Properties

PropertyDescriptionTypeDefault Value
broadcastingAn infinite "broadcast wave" animation is shown if trueBooleanfalse
stationColorColor of stationString(#RRGGBB or #AARRGGBB)#4286f4
waveColorColor of wavesString(#RRGGBB or #AARRGGBB)#ff60ad