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