Skip to content

Commit 8247636

Browse files
author
Sibusiso Massango
committed
refactor: updating packages to latest
1 parent 224e37e commit 8247636

File tree

7 files changed

+29193
-4348
lines changed

7 files changed

+29193
-4348
lines changed

example/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
"test": "jest"
1313
},
1414
"dependencies": {
15-
"expo": "^45.0.0",
15+
"expo": "^48.0.0",
1616
"expo-splash-screen": "~0.15.1",
17-
"react": "17.0.2",
18-
"react-dom": "17.0.2",
19-
"react-native": "0.68.2",
17+
"react": "18.2.0",
18+
"react-dom": "18.2.0",
19+
"react-native": "0.71.3",
2020
"react-native-unimodules": "~0.12.0",
2121
"react-native-web": "0.17.7"
2222
},
2323
"devDependencies": {
2424
"@babel/core": "^7.12.9",
2525
"@babel/runtime": "^7.9.6",
26-
"@types/react": "~17.0.21",
26+
"@types/react": "~18.0.28",
2727
"babel-plugin-module-resolver": "^4.0.0",
2828
"babel-preset-expo": "~9.1.0",
2929
"expo-cli": "^4.0.13"

example/src/App.tsx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import * as React from 'react';
22
import { Button, StyleSheet, Text, View } from 'react-native';
33
import MultiSteps from 'react-native-multi-steps';
44

5-
6-
export default function App(props) {
5+
export default function App() {
76
const [show, setShow] = React.useState<boolean>(false);
87

98
return (
109
<View style={styles.container}>
11-
<Button onPress={() => setShow(!show)} title="show section"/>
10+
<Button onPress={() => setShow(!show)} title="show section" />
1211
<MultiSteps
1312
onMoveNext={function (data: any): void {
1413
console.log('next', data);
@@ -30,24 +29,23 @@ export default function App(props) {
3029
</Text>
3130
</View>
3231
{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>
5149
)}
5250
<View>
5351
<Text>
@@ -88,4 +86,5 @@ const styles = StyleSheet.create({
8886
justifyContent: 'center',
8987
margin: 20,
9088
},
89+
text: { fontSize: 30, fontWeight: 'bold' },
9190
});

0 commit comments

Comments
 (0)