diff --git a/example/App.js b/example/App.js index cb7f297..4926036 100644 --- a/example/App.js +++ b/example/App.js @@ -3,22 +3,10 @@ import {SafeAreaView, StyleSheet, View} from 'react-native'; import ReadMore from './src'; const App = () => { - const [collapsed, setCollapsed] = useState(true); - - const toggle = () => { - setCollapsed(!collapsed); - }; - return ( - setCollapsed(false)} - onSeeLess={() => setCollapsed(true)}> + { "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." } diff --git a/example/src/ReadMore.js b/example/src/ReadMore.js index 485c219..da0dab4 100644 --- a/example/src/ReadMore.js +++ b/example/src/ReadMore.js @@ -7,7 +7,6 @@ import { LayoutAnimation, Platform, UIManager, - TextPropTypes, } from 'react-native'; import {getTextByChildren, insertAt, linesToCharacters} from './helper'; @@ -17,7 +16,6 @@ const enableGlobalLayoutAnimation = enable => { return; } globalAnimationEnabled = true; - console.log('enabling global animation'); if (Platform.OS === 'android') { if (UIManager.setLayoutAnimationEnabledExperimental) { UIManager.setLayoutAnimationEnabledExperimental(true); @@ -769,7 +767,6 @@ const styles = StyleSheet.create({ }); ReadMore.propTypes = { - ...TextPropTypes, seeMoreStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.array]), seeLessStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.array]), wrapperStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.array]), diff --git a/package.json b/package.json index e9611e7..9714c9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fawazahmed/react-native-read-more", - "version": "3.0.0", + "version": "3.0.1", "description": "A simple react native library to show large blocks of text in a condensed manner with the ability to collapse and expand.", "main": "dist/index.js", "types": "index.d.ts",