2021-08-27 20:03:59 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { View, StyleSheet } from 'react-native';
|
2022-08-19 19:53:40 +00:00
|
|
|
|
2022-06-27 18:46:59 +00:00
|
|
|
import { FormTextInput } from '.';
|
2021-08-27 20:03:59 +00:00
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
paddingHorizontal: {
|
|
|
|
paddingHorizontal: 14
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2022-08-19 19:53:40 +00:00
|
|
|
export default {
|
|
|
|
title: 'TextInput'
|
|
|
|
};
|
2021-08-27 20:03:59 +00:00
|
|
|
|
|
|
|
const item = {
|
|
|
|
name: 'Rocket.Chat',
|
|
|
|
longText: 'https://open.rocket.chat/images/logo/android-chrome-512x512.png'
|
|
|
|
};
|
|
|
|
|
2022-08-19 19:53:40 +00:00
|
|
|
export const ShortAndLong = () => (
|
2021-08-27 20:03:59 +00:00
|
|
|
<>
|
|
|
|
<View style={styles.paddingHorizontal}>
|
2022-06-27 18:46:59 +00:00
|
|
|
<FormTextInput label='Short Text' placeholder='placeholder' value={item.name} />
|
2021-08-27 20:03:59 +00:00
|
|
|
|
2022-06-27 18:46:59 +00:00
|
|
|
<FormTextInput label='Long Text' placeholder='placeholder' value={item.longText} />
|
2021-08-27 20:03:59 +00:00
|
|
|
</View>
|
|
|
|
</>
|
2022-08-19 19:53:40 +00:00
|
|
|
);
|