From 74b5479e6bf848aaddf41842174043d112e3f403 Mon Sep 17 00:00:00 2001 From: Lohen Yumnam Date: Mon, 11 Dec 2023 15:14:54 +0530 Subject: [PATCH] chore: new example added --- example/src/App.tsx | 9 ++++++++- tsconfig.json | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/example/src/App.tsx b/example/src/App.tsx index 5d89617..448237a 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -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() { @@ -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); + }} />