Skip to content

Commit

Permalink
version bump: patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Verster committed Oct 29, 2019
1 parent dbbaf62 commit 92bc1f4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
src
jest.config.jest
.prettierrc
.babelrc
.gitignore
.eslintrc
yarn-error.log
yarn.lock
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions src/Context/index.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -31,11 +31,11 @@ const ToastProvider: React.FC<ToastContextType> = ({ children }) => {
return (
<ToastContext.Provider value={{ toast }}>
{children}
<ToastWrapper px={4} pt={offset}>
<Box px={4} pt={offset} position="absolute" top={0} left={0} right={0}>
{toasts.map((config) => {
return <Toast key={config.id} onClose={(id) => hideToast(id)} {...config} />
})}
</ToastWrapper>
</Box>
</ToastContext.Provider>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Icon/index.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 92bc1f4

Please # to comment.