@@ -2,13 +2,12 @@ import * as React from 'react';
2
2
import { Button , StyleSheet , Text , View } from 'react-native' ;
3
3
import MultiSteps from 'react-native-multi-steps' ;
4
4
5
-
6
- export default function App ( props ) {
5
+ export default function App ( ) {
7
6
const [ show , setShow ] = React . useState < boolean > ( false ) ;
8
7
9
8
return (
10
9
< View style = { styles . container } >
11
- < Button onPress = { ( ) => setShow ( ! show ) } title = "show section" />
10
+ < Button onPress = { ( ) => setShow ( ! show ) } title = "show section" />
12
11
< MultiSteps
13
12
onMoveNext = { function ( data : any ) : void {
14
13
console . log ( 'next' , data ) ;
@@ -30,24 +29,23 @@ export default function App(props) {
30
29
</ Text >
31
30
</ View >
32
31
{ show && (
33
- < View >
34
- < Text style = { { fontSize : 30 , fontWeight : 'bold' } } >
35
- Show this section
36
- </ Text >
37
- < Text >
38
- Piedmont, or mountain, glaciers are found in many parts of the
39
- world. In North America they are distributed along the mountain
40
- ranges of the Pacific Coast from central California northward. They
41
- abound in the Andes range in South America and are familiar and
42
- greatly admired spectacles in the Alps, the Pyrenees, the Caucasus
43
- Mountains and the mountains of Scandanavia. Rivers of ice flow down
44
- the valleys of various Asian mountain ranges, including the
45
- Himalayas, the Hindu Kush, and the Karakoram and Kunlun ranges. They
46
- are also a feature of the Southern Alps of New Zealand and are found
47
- in the lofty mountains of New Guinea. The largest piedmont glaciers
48
- are the Malaspina and Bering glaciers, both in Alaska.
49
- </ Text >
50
- </ View >
32
+ < View >
33
+ < Text style = { styles . text } > Show this section</ Text >
34
+ < Text >
35
+ Piedmont, or mountain, glaciers are found in many parts of the
36
+ world. In North America they are distributed along the mountain
37
+ ranges of the Pacific Coast from central California northward.
38
+ They abound in the Andes range in South America and are familiar
39
+ and greatly admired spectacles in the Alps, the Pyrenees, the
40
+ Caucasus Mountains and the mountains of Scandanavia. Rivers of ice
41
+ flow down the valleys of various Asian mountain ranges, including
42
+ the Himalayas, the Hindu Kush, and the Karakoram and Kunlun
43
+ ranges. They are also a feature of the Southern Alps of New
44
+ Zealand and are found in the lofty mountains of New Guinea. The
45
+ largest piedmont glaciers are the Malaspina and Bering glaciers,
46
+ both in Alaska.
47
+ </ Text >
48
+ </ View >
51
49
) }
52
50
< View >
53
51
< Text >
@@ -88,4 +86,5 @@ const styles = StyleSheet.create({
88
86
justifyContent : 'center' ,
89
87
margin : 20 ,
90
88
} ,
89
+ text : { fontSize : 30 , fontWeight : 'bold' } ,
91
90
} ) ;
0 commit comments