react-native-tvos-elements

0.0.3 • Public • Published
___ _  _ ____ ____    ____ _    ____ _  _ ____ _  _ ___ ____
 |  |  | |  | [__     |___ |    |___ |\/| |___ |\ |  |  [__ 
 |   \/  |__| ___]    |___ |___ |___ |  | |___ | \|  |  ___]
                                                            

CircleCI codecov npm version License: MIT

React Native Basic Elements for tvOS

Prerequisites

  1. Install react-native-vector-icons

Note: You must manually add vector icons into your project

Installation

npm install --save react-native-tvos-elements

Example

import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View } from 'react-native';
import { TvOSButton } from 'react-native-tvos-elements';
 
export default class App extends Component<Props> {
    render() {
        return (
            <View style={styles.container}>
                <TvOSButton 
                    txtStyleFocused={{color:'green'}}
                    title='Steam' 
                    titleAlign='left' 
                    iconType='Ionicons' 
                    iconName='ios-person' /> 
                <TvOSButton 
                    title='Bitcoin' 
                    titleAlign='right' 
                    iconAlign='left' 
                    iconType='FontAwesome' 
                    iconName='btc' />
                <TvOSButton 
                    txtStyleFocused={{color:'red'}}
                    txtStyleUnfocused={{color:'black'}}
                    title='Settings' />
                <TvOSButton 
                    title='Ethereum' 
                    iconType='MaterialCommunityIcons' 
                    iconName='ethereum' />
            </View>
        );
    }
}

Package Sidebar

Install

npm i react-native-tvos-elements

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

222 kB

Total Files

21

Last publish

Collaborators

  • relaed