Inputs allow users to enter text into a UI.
import React from 'react';
import { View } from 'react-native';
import { Input } from 'monalisa-ui';
const Example = () => (
<View>
<Input
placeholder="Input value"
/>
<Input
transparent
placeholder="Input transparent"
/>
<Input
label="Username"
placeholder="Input transparent"
/>
</View>
);
export default Example;
import React from 'react';
import { View } from 'react-native';
import { Input } from 'monalisa-ui';
const Example = () => (
<View>
<Input
placeholder="Input value"
error="Missing value"
errorStyle={{ color: '#ff0000', fontSize: 11 }}
/>
</View>
);
export default Example;
import React from 'react';
import { View } from 'react-native';
import { Input } from 'monalisa-ui';
import Icon from 'react-native-vector-icons/AntDesign';
const Example = () => (
<View>
<Input
placeholder="Input left icon"
leftIcon={<Icon size={22} name="mail" />}
/>
<Input
placeholder="Input right icon"
rightIcon={<Icon size={22} name="close" />}
/>
</View>
);
export default Example;