Skip to content

Commit

Permalink
Static assets and static example data are not here anymore. Much bett…
Browse files Browse the repository at this point in the history
…er coding.
  • Loading branch information
WrathChaos committed Mar 15, 2020
1 parent de014bf commit 47fd6c2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 316 deletions.
26 changes: 25 additions & 1 deletion example/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
import React, { useState } from "react";
import { StatusBar, SafeAreaView } from "react-native";
import WhatsNew from "./lib/src/WhatsNewKit";
import WhatsNew from "react-native-whatsnew-kit";

const staticData = [
{
title: "Awesome",
description:
"Suspendisse ex mauris, viverra vitae mi eget, consectetur interdum sem. Phasellus sodales elit ac mauris posuere",
icon: require("./assets/check.png"),
iconComponent: null
},
{
title: "Dark Theme",
description:
"Orci varius. Aliquam accumsan lectus lorem, a congue diam commodo sit amet. Fusce laoreet sapien non lectus dignissim viverra.",
icon: require("./assets/theme.png"),
iconComponent: null
},
{
title: "Bug Fixes",
description: "Donec non mauris sagittis, gravida velit vel, varius quam.",
icon: require("./assets/wiping.png"),
iconComponent: null
}
];

const App = () => {
const [isVisible, setIsVisible] = useState(true);
Expand All @@ -9,6 +32,7 @@ const App = () => {
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<WhatsNew
data={staticData}
fullScreen={false}
isVisible={isVisible}
onBackdropPress={() => setIsVisible(false)}
Expand Down
199 changes: 0 additions & 199 deletions example/lib/src/WhatsNewKit.js

This file was deleted.

91 changes: 0 additions & 91 deletions example/lib/src/WhatsNewKit.style.js

This file was deleted.

25 changes: 1 addition & 24 deletions lib/src/WhatsNewKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,6 @@ import styles, {
_textButtonTextStyle
} from "./WhatsNewKit.style";

const staticData = [
{
title: "Awesome",
description:
"Suspendisse ex mauris, viverra vitae mi eget, consectetur interdum sem. Phasellus sodales elit ac mauris posuere",
icon: require("../../assets/check.png"),
iconComponent: null
},
{
title: "Dark Theme",
description:
"Orci varius. Aliquam accumsan lectus lorem, a congue diam commodo sit amet. Fusce laoreet sapien non lectus dignissim viverra.",
icon: require("../../assets/theme.png"),
iconComponent: null
},
{
title: "Bug Fixes",
description: "Donec non mauris sagittis, gravida velit vel, varius quam.",
icon: require("../../assets/wiping.png"),
iconComponent: null
}
];

const WhatsNewKit = props => {
const {
data,
Expand Down Expand Up @@ -179,9 +156,9 @@ WhatsNewKit.propTypes = {
};

WhatsNewKit.defaultProps = {
data: [],
iconWidth: 50,
iconHeight: 50,
data: staticData,
fullScreen: false,
titleFontSize: 32,
buttonFontSize: 16,
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-whatsnew-kit",
"version": "0.0.1",
"version": "0.0.2",
"description": "Plug & Play, beautiful WhatsNewKit for React Native",
"keywords": [
"FreakyCoder",
Expand All @@ -19,6 +19,9 @@
"repository": "[email protected]:WrathChaos/react-native-whatsnew-kit.git",
"author": "Kuray (FreakyCoder) <[email protected]>",
"license": "MIT",
"dependencies": {
"react-native-modal": ">= 11.5.3"
},
"peerDependencies": {
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
Expand Down

0 comments on commit 47fd6c2

Please sign in to comment.