Skip to content

ExtisOne/react-native-simple-read-more-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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',
  },
});

``

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published