1
1
import { View , Text , Image , ScrollView } from 'react-native'
2
2
import React from 'react'
3
- import ClipPath from '@ react-native-oh-tpl/clip-path '
3
+ import { ClipPathView } from 'react-native-clippathview '
4
4
import { myPath2 , myPath3 , myPath10 , myPath11 , myPath12 } from './paths'
5
5
6
6
export default function index ( ) {
@@ -10,47 +10,47 @@ export default function index() {
10
10
return (
11
11
< ScrollView style = { { width : '100%' , height : '100%' } } >
12
12
< Text > sc: 1</ Text >
13
- < ClipPath sc = { 1 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
13
+ < ClipPathView sc = { 1 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
14
14
< Text > 11111111111111111111111111111111111111111</ Text >
15
15
< Text > 22222222222222222222222222222222222222222</ Text >
16
- </ ClipPath >
16
+ </ ClipPathView >
17
17
< Text > --------------------------------------------</ Text >
18
18
< Text > sc: 0.5</ Text >
19
- < ClipPath sc = { 0.5 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
19
+ < ClipPathView sc = { 0.5 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
20
20
< Text > 11111111111111111111111111111111111111111</ Text >
21
21
< Text > 22222222222222222222222222222222222222222</ Text >
22
- </ ClipPath >
22
+ </ ClipPathView >
23
23
< Text > --------------------------------------------</ Text >
24
24
< Text > sc: 2</ Text >
25
- < ClipPath sc = { 2 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
25
+ < ClipPathView sc = { 2 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
26
26
< Text > 11111111111111111111111111111111111111111</ Text >
27
27
< Text > 22222222222222222222222222222222222222222</ Text >
28
- </ ClipPath >
28
+ </ ClipPathView >
29
29
< Text > </ Text > < Text > </ Text > < Text > </ Text > < Text > </ Text > < Text > </ Text > < Text > </ Text >
30
30
< Text > --------------------------------------------</ Text >
31
31
< Text > sc: 0.5, scO: 200</ Text >
32
- < ClipPath sc = { 0.5 } scO = { 200 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
32
+ < ClipPathView sc = { 0.5 } scO = { 200 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
33
33
< Text > 11111111111111111111111111111111111111111</ Text >
34
34
< Text > 22222222222222222222222222222222222222222</ Text >
35
- </ ClipPath >
35
+ </ ClipPathView >
36
36
< Text > --------------------------------------------</ Text >
37
37
< Text > sc: 0.5, scO: 50, scPercentageValue: true</ Text >
38
- < ClipPath sc = { 0.5 } scO = { 50 } scPercentageValue = { true } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
38
+ < ClipPathView sc = { 0.5 } scO = { 50 } scPercentageValue = { true } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
39
39
< Text > 11111111111111111111111111111111111111111</ Text >
40
40
< Text > 22222222222222222222222222222222222222222</ Text >
41
- </ ClipPath >
41
+ </ ClipPathView >
42
42
< Text > --------------------------------------------</ Text >
43
43
< Text > scX: 0.5</ Text >
44
- < ClipPath scX = { 0.5 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
44
+ < ClipPathView scX = { 0.5 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
45
45
< Text > 11111111111111111111111111111111111111111</ Text >
46
46
< Text > 22222222222222222222222222222222222222222</ Text >
47
- </ ClipPath >
47
+ </ ClipPathView >
48
48
< Text > --------------------------------------------</ Text >
49
49
< Text > scY: 0.5</ Text >
50
- < ClipPath scY = { 0.5 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
50
+ < ClipPathView scY = { 0.5 } viewBox = { viewBox } d = { myPath10 } style = { { width : 200 , height : 100 , backgroundColor : '#ff0' } } >
51
51
< Text > 11111111111111111111111111111111111111111</ Text >
52
52
< Text > 22222222222222222222222222222222222222222</ Text >
53
- </ ClipPath >
53
+ </ ClipPathView >
54
54
</ ScrollView >
55
55
)
56
56
}
0 commit comments