Skip to content

Commit 4dd6e6c

Browse files
committed
doc update
1 parent db2ee1f commit 4dd6e6c

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Allows you to add stylish text with stroke effects to your mobile applications. It is perfect for creating visually appealing text elements with outline effects.
66

77
<h1 align="center">
8-
<img width="450" src="docs/example.jpeg"/>
8+
<img width="550" src="docs/example.jpeg"/>
99
</h1>
1010

1111

@@ -65,6 +65,29 @@ The following table outlines the props available for the `StrokeText` component:
6565
| `width` | number | Text width to enable ellipsis (default: `undefined`) |
6666

6767

68+
## Ellipsis
69+
70+
```jsx
71+
<StrokeText
72+
text="Lorem ipsum"
73+
width={150} // +
74+
ellipsis={true} // +
75+
numberOfLines={1} // +
76+
fontSize={32}
77+
color="#FFFFFF"
78+
strokeColor="#000000"
79+
strokeWidth={2}
80+
fontFamily="Nunito-Black"
81+
align="center"
82+
/>
83+
84+
```
85+
86+
<h1 align="center">
87+
<img width="450" src="docs/ellipsis.jpeg"/>
88+
</h1>
89+
90+
6891
## Custom Font
6992
Create a `react-native.config.js` file in the root directory
7093

docs/ellipsis.jpeg

149 KB
Loading

docs/example.jpeg

253 KB
Loading

0 commit comments

Comments
 (0)