Skip to content

Commit

Permalink
chore: new example added
Browse files Browse the repository at this point in the history
  • Loading branch information
Lohen Yumnam authored and Lohen Yumnam committed Dec 11, 2023
1 parent c98d42f commit 74b5479
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from 'react';
import { StyleSheet, Text, SafeAreaView, ScrollView, View } from 'react-native';
import { SafeAreaView, ScrollView, StyleSheet, Text, View } from 'react-native';
import { TruncatedTextView } from 'react-native-truncated-text-view';

import { DATA } from './DUMMY_TEXT';

export default function App() {
Expand Down Expand Up @@ -35,6 +36,10 @@ export default function App() {
numberOfLines={5}
enableShowLess={true}
containerStyle={styles.textContainer}
numberOfLineGapOnExpanded={2}
onChangeExpandedStatus={(isExpended) => {
console.log('🚀 - file: App.tsx:41 - isExpended:', isExpended);
}}
/>

<TruncatedTextView
Expand Down Expand Up @@ -106,8 +111,10 @@ const styles = StyleSheet.create({
color: 'gray',
lineHeight: 27,
letterSpacing: 0.7,
// backgroundColor: 'red',
},
tailText: {
color: 'gray',
// marginTop: lineHeight
},
});
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"ignoreDeprecations": "5.0",
"baseUrl": "./",
"paths": {
"react-native-truncated-text-view": ["./src/index"]
Expand Down

0 comments on commit 74b5479

Please sign in to comment.