UNPKG

@deboxsoft/react-native-elements

Version:
35 lines (27 loc) 981 B
--- id: version-1.0.0-beta7-overview title: Overview original_id: overview --- This section of the documentation describes the props and examples for all the components from React Native Elements. ## Using React Native Elements The components in this library have a single theme running through them. From one central location, we can update the colours used in all components. While this was great for the developers of the library, the actual users also needed a way to use this feature. But why stop at colours? Why not allow the props of every component to be defined in one central place? And so the idea behind theming with React Native Elements was born! ```jsx import { Button, ThemeProvider } from 'react-native-elements'; const MyApp = () => { return ( <ThemeProvider> <Button title="Hey!" /> </ThemeProvider> ); }; ``` To customize the theme, or use it within your own components, be sure to check the docs on [Customization](customization.md).