Skip to content

Commit

Permalink
fix: remove required on relevant props
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Verster committed Mar 13, 2021
1 parent 9292b6b commit 9dcb03e
Show file tree
Hide file tree
Showing 4 changed files with 1,443 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: npm config set registry https://registry.npmjs.org/ && npm publish
- run: npm config set registry https://registry.npmjs.org && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"scripts": {
"build": "yarn format && rm -rf dist && tsc",
"format": "yarn prettier -- --write",
"start": "tsc -w",
"watch": "onchange 'dist/**/*.js' -- cp -R ./dist ../rn-styled-toast-demo-new/node_modules/react-native-styled-toast",
"prepare": "yarn build",
"prettier": "prettier \"**/*.+(js|jsx|json|css|scss|ts|tsx)\"",
"release": "npm publish",
Expand Down Expand Up @@ -34,6 +36,7 @@
"url": "https://github.com/jeanverster/react-native-styled-toast"
},
"devDependencies": {
"@babel/runtime": "^7.13.8",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
Expand All @@ -55,16 +58,22 @@
"husky": "^3.0.9",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.3",
"np": "^7.3.0",
"onchange": "^7.1.0",
"prettier": "^1.18.2",
"react-native-vector-icons": "^7.0.0",
"react-test-renderer": "16.8.3",
"semantic-release": "^17.1.1",
"tsc-watch": "^4.2.9",
"typescript": "^3.6.4"
},
"dependencies": {
"@types/styled-components": "^5.1.1",
"react-native-status-bar-height": "^2.5.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"release": {
"branches": [
"develop"
Expand Down
4 changes: 2 additions & 2 deletions src/Toast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export type ToastConfig = {
intent?: 'SUCCESS' | 'ERROR' | 'INFO'
message: string
onPress?: () => void
messageProps: TextProps
subMessageProps: TextProps
messageProps?: TextProps
subMessageProps?: TextProps
shouldVibrate?: boolean
subMessage?: string
toastStyles?: StyledToastProps
Expand Down
Loading

0 comments on commit 9dcb03e

Please # to comment.