___ _ _ ____ ____ ____ _ ____ _ _ ____ _ _ ___ ____
| | | | | [__ |___ | |___ |\/| |___ |\ | | [__
| \/ |__| ___] |___ |___ |___ | | |___ | \| | ___]
React Native Basic Elements for tvOS
- Install
react-native-vector-icons
Note: You must manually add vector icons into your project
npm install --save react-native-tvos-elements
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>
);
}
}