import React from 'react' ; import { ColorValue , StyleSheet , Text , View } from 'react-native' ; interface ButtonProps { color : ColorValue ; } const styles = StyleSheet . create ( { button : { paddingHorizontal : 16 , paddingVertical : 8 } , } ) ; export const Color = ( { color } ) => ( < View style = { [ styles . button , { backgroundColor : color } ] } > < Text > Color : { color } < /Text> < /View>);