react-native-simple-read-more-text
v1.0.4
Published
Read more functionality for React Native
Downloads
8
Readme
react-native-simple-read-more-text
Add to project
npm i react-native-simple-read-more-text
or
expo install react-native-simple-read-more-text
Usage
import { View, StyleSheet } from 'react-native';
import SimpleReadMore from 'react-native-simple-read-more-text';
export default function App() {
return (
<View style={styles.container}>
<SimpleReadMore
lines={2}
readMoreText={"Custom read more text"}
readLessText={"Custom read less text"}
footerStyle={{ color: '#12122B', fontSize: 17, fontFamily: 'montserrat-bold' }}
style={{fontSize: 14, color: 'black'}}>
{body}
</SimpleReadMore>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});
``