how to add icon to button in reactjs code example
Example: icon button react
import * as React from 'react';
import { IconButton, Colors } from 'react-native-paper';
const MyComponent = () => (
<IconButton
icon="camera"
color={Colors.red500}
size={20}
onPress={() => console.log('Pressed')}
/>
);
export default MyComponent;