Skip to content

Commit

Permalink
feat(text-props): ✨ added new example
Browse files Browse the repository at this point in the history
  • Loading branch information
BLOCKMATERIAL committed Oct 31, 2023
1 parent 58fc6f8 commit f6084a7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ export default function App() {
enableOnPressToggle={false}
enableTailView={false}
/>

<TruncatedTextView
text={DATA}
style={styles.textStyle}
tailTextStyle={styles.tailText}
numberOfLines={2}
enableShowLess={true}
containerStyle={styles.textContainer}
enableOnPressToggle={false}
enableTailView={false}
textPropsChild={{ allowFontScaling: false }}
textPropsRoot={{ allowFontScaling: false }}
/>
</ScrollView>
</View>
</SafeAreaView>
Expand Down

0 comments on commit f6084a7

Please sign in to comment.