Skip to content

Commit 9d9dbc6

Browse files
committed
Logo is updated
1 parent 7720869 commit 9d9dbc6

2 files changed

Lines changed: 38 additions & 9 deletions

File tree

assets/logo.png

3.37 KB
Loading

example/App.tsx

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,45 @@ import SwitchButton from "@freakycoder/react-native-switch-button";
1313
const App = () => {
1414
return (
1515
<SafeAreaView style={{ flex: 1, margin: 32 }}>
16-
<SwitchButton
17-
inactiveImageSource={require("./assets/notification.png")}
18-
activeImageSource={require("./assets/notification-3.png")}
19-
text="Notification"
20-
textStyle={{
21-
color: "#757575",
22-
fontWeight: "600",
16+
<Text>App Setting</Text>
17+
<View
18+
style={{
19+
flexDirection: "row",
20+
width: "100%",
21+
justifyContent: "space-evenly",
2322
}}
24-
onPress={(isActive: boolean) => console.log(isActive)}
25-
/>
23+
>
24+
<SwitchButton
25+
inactiveImageSource={require("./assets/notification.png")}
26+
activeImageSource={require("./assets/notification-3.png")}
27+
text="Notification"
28+
textStyle={{
29+
color: "#757575",
30+
fontWeight: "600",
31+
}}
32+
onPress={(isActive: boolean) => console.log(isActive)}
33+
/>
34+
<SwitchButton
35+
inactiveImageSource={require("./assets/notification.png")}
36+
activeImageSource={require("./assets/notification-3.png")}
37+
text="Notification"
38+
textStyle={{
39+
color: "#757575",
40+
fontWeight: "600",
41+
}}
42+
onPress={(isActive: boolean) => console.log(isActive)}
43+
/>
44+
<SwitchButton
45+
inactiveImageSource={require("./assets/notification.png")}
46+
activeImageSource={require("./assets/notification-3.png")}
47+
text="Notification"
48+
textStyle={{
49+
color: "#757575",
50+
fontWeight: "600",
51+
}}
52+
onPress={(isActive: boolean) => console.log(isActive)}
53+
/>
54+
</View>
2655
</SafeAreaView>
2756
);
2857
};

0 commit comments

Comments
 (0)