Skip to content

Commit 7e4bf59

Browse files
committed
Library is ready to publish and test
1 parent 89f035f commit 7e4bf59

5 files changed

Lines changed: 5 additions & 186 deletions

File tree

example/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
useColorScheme,
99
View,
1010
} from "react-native";
11-
import SwitchButton from "./lib/SwitchButton";
11+
import SwitchButton from "./build/dist/SwitchButton";
1212

1313
const App = () => {
1414
return (

example/lib/SwitchButton.style.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

example/lib/SwitchButton.tsx

Lines changed: 0 additions & 143 deletions
This file was deleted.

lib/SwitchButton.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import React from "react";
1+
import * as React from "react";
22
import {
33
View,
4-
StyleProp,
5-
Image,
64
Text,
75
Animated,
86
ViewStyle,
9-
ImageSourcePropType,
7+
StyleProp,
108
TextStyle,
119
ImageStyle,
10+
ImageSourcePropType,
1211
} from "react-native";
1312
import RNBounceable from "@freakycoder/react-native-bounceable";
1413
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-native-typescript-library-starter",
33
"version": "1.0.5",
44
"description": "Extremely easy to create a React Native Component Library with both Stateful and Functional Component Examples.",
5-
"main": "./build/dist/index.js",
5+
"main": "./build/dist/SwitchButton.js",
66
"repository": "git@github.com:WrathChaos/react-native-typescript-library-starter.git",
77
"author": "FreakyCoder <kurayogun@gmail.com>",
88
"license": "MIT",

0 commit comments

Comments
 (0)