From 92bc1f485113037a44cd80b6b35af0ec16237758 Mon Sep 17 00:00:00 2001 From: Jean Verster Date: Tue, 29 Oct 2019 08:44:28 +0200 Subject: [PATCH] version bump: patch --- .npmignore | 8 ++++++++ package.json | 5 ++--- src/Context/index.tsx | 6 +++--- src/Icon/index.tsx | 2 +- 4 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..c4b261e --- /dev/null +++ b/.npmignore @@ -0,0 +1,8 @@ +src +jest.config.jest +.prettierrc +.babelrc +.gitignore +.eslintrc +yarn-error.log +yarn.lock diff --git a/package.json b/package.json index 68fd7f8..b5d33e5 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,13 @@ { "name": "react-native-styled-toast", - "version": "1.0.0", + "version": "1.0.4", "description": "A themeable toast component for React Native.", - "main": "dist/index.js", + "main": "./src/index.tsx", "types": "dist/index.d.ts", "scripts": { "build": "yarn format && rm -rf dist && tsc", "release": "semantic-release --repository-url git@github.com:${TRAVIS_REPO_SLUG}", "format": "yarn prettier -- --write", - "precommit": "yarn format", "prepublishOnly": "yarn build", "prettier": "prettier \"**/*.+(js|jsx|json|css|scss|ts|tsx)\"", "test": "jest" diff --git a/src/Context/index.tsx b/src/Context/index.tsx index a0a3efc..8a2b2ec 100644 --- a/src/Context/index.tsx +++ b/src/Context/index.tsx @@ -1,9 +1,9 @@ import Constants from 'expo-constants' import * as React from 'react' import { LayoutAnimation } from 'react-native' +import Box from '../Box' import Toast, { ToastConfig } from '../Toast' import { uuid } from '../Utils' -import { ToastWrapper } from './styles' type ToastContextType = { toast?: (options: ToastConfig) => void @@ -31,11 +31,11 @@ const ToastProvider: React.FC = ({ children }) => { return ( {children} - + {toasts.map((config) => { return hideToast(id)} {...config} /> })} - + ) } diff --git a/src/Icon/index.tsx b/src/Icon/index.tsx index 29a100a..ae902e6 100644 --- a/src/Icon/index.tsx +++ b/src/Icon/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import Entypo from 'react-native-vector-icons/Entypo' import EvilIcons from 'react-native-vector-icons/EvilIcons' import Feather from 'react-native-vector-icons/Feather'