Publish new version to npm
See original GitHub issueThe version on npm (0.4.0) is crashing due to React.PropTypes.any
code on ActionSheetProvider.js
file.
This is weird because it was published 2 weeks ago and the fix in on master long before that.
But this is the content I’m getting on node_modules for the latest version:
import React from 'react';
import ActionSheet from './ActionSheet';
export default class ActionSheetProvider extends React.Component {
static propTypes = {
children: React.PropTypes.any,
};
static childContextTypes = {
showActionSheetWithOptions: React.PropTypes.func,
};
getChildContext() {
return {
showActionSheetWithOptions: (...args) =>
this._actionSheetRef.showActionSheetWithOptions(...args),
};
}
render() {
return (
<ActionSheet ref={component => (this._actionSheetRef = component)}>
{React.Children.only(this.props.children)}
</ActionSheet>
);
}
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:7
Top Results From Across the Web
Updating your published package version number - npm Docs
To change the version number in package.json , on the command line, in the package root directory, run the following command, replacing <update_type>...
Read more >How to Publish an Updated Version of an npm Package
The easiest way to update your version number is to use the handy npm version command. This will automatically update the version number...
Read more >How do I update an NPM module that I published?
To change the version number in package.json, on the command line, in the package root directory, run the following command, replacing < ...
Read more >How to publish packages to npm (the way the industry does ...
Run tests (if there are any) · Update version in package.json according to Semver · Create a git tag according to Semver ·...
Read more >Publishing a beta or alpha version to NPM | by Kevin Kreuzer
You can run npm version 3.1.0-beta.0 to update package.json and create a git tag in one go (see https://docs.npmjs.com ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👋 @eightyfive @jamesalways @brunolemos @kumarryogeshh
This should be fixed in 1.0.2: https://www.npmjs.com/package/@expo/react-native-action-sheet
When will new version be published?? Thx.