Skip to content

Commit e346e7b

Browse files
author
Sibusiso Massango
committed
updating readmi with conditioning rendering example
1 parent 329f9ab commit e346e7b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This component aimed to enable navigating from it's child component using multi step approach which will help in creating multi step forms, viewing item by item etc..
44

5+
The new version of react-native-multi-steps now support conditional rendering.
6+
57
![Preview](https://github.com/samassango/react-native-multi-steps/blob/main/screenshot.gif)
68

79

@@ -83,6 +85,26 @@ export default function App() {
8385
A paragraph is a series of related sentences developing a central idea, called the topic. Try to think about paragraphs in terms of thematic unity: a paragraph is a sentence or a group of sentences that supports one central, unified idea. Paragraphs add one idea at a time to your broader argument.
8486
</Text>
8587
</View>
88+
{show && (
89+
<View>
90+
<Text style={{ fontSize: 30, fontWeight: 'bold' }}>
91+
Show this section
92+
</Text>
93+
<Text>
94+
Piedmont, or mountain, glaciers are found in many parts of the
95+
world. In North America they are distributed along the mountain
96+
ranges of the Pacific Coast from central California northward. They
97+
abound in the Andes range in South America and are familiar and
98+
greatly admired spectacles in the Alps, the Pyrenees, the Caucasus
99+
Mountains and the mountains of Scandanavia. Rivers of ice flow down
100+
the valleys of various Asian mountain ranges, including the
101+
Himalayas, the Hindu Kush, and the Karakoram and Kunlun ranges. They
102+
are also a feature of the Southern Alps of New Zealand and are found
103+
in the lofty mountains of New Guinea. The largest piedmont glaciers
104+
are the Malaspina and Bering glaciers, both in Alaska.
105+
</Text>
106+
</View>
107+
)}
86108
<View>
87109
<Text>
88110
Piedmont, or mountain, glaciers are found in many parts of the world. In North America they are distributed along the mountain ranges of the Pacific Coast from central California northward. They abound in the Andes range in South America and are familiar and greatly admired spectacles in the Alps, the Pyrenees, the Caucasus Mountains and the mountains of Scandanavia. Rivers of ice flow down the valleys of various Asian mountain ranges, including the Himalayas, the Hindu Kush, and the Karakoram and Kunlun ranges. They are also a feature of the Southern Alps of New Zealand and are found in the lofty mountains of New Guinea. The largest piedmont glaciers are the Malaspina and Bering glaciers, both in Alaska. </Text>

0 commit comments

Comments
 (0)