
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
github.com/ronak301/react-native-submit-button
An Animated Submit Button. Works on both android and IOS.
https://dribbble.com/shots/1426764-Submit-Button
https://github.com/ronak301/react-native-submit-button.git
react-native link
else rnpm link
import SubmitButton from 'react-native-submit-button';
class SubmitButtonExample extends Component {
render() {
return (
<View style={{flex:1}}>
<SubmitButton />
</View>
);
}
}
Property | Type | Default | Description |
---|---|---|---|
primaryColor | string | rgb(30, 205, 151) | optional user-defined primary color |
secondaryColor | string | white | optional user-defined secondary color |
buttonState | string | normal | button state can be one of normal , success , error |
width | number | 180 | optional user-defined width for button |
height | number | 54 | optional user-defined height for button |
buttonText | string | 'Submit' | optional user-defined text on button |
buttonTextWhenReady | string | optional user-defined text on button when success (either provide this or give iconName to be shown once submitted successfully ) , this will get priority over icon name | |
iconName | string | 'check' | optional any icon name from fontello icons , to be shown once we got success. |
textStyle | object | optional text styles to override existing styles | |
buttonStyle | object | optional button styles to override existing styles | |
animationDuration | number | 200 | number in ms . Time to fold button. |
errorColor | string | #ff6666 | error color |
onSubmit | function | function to call on button press | |
onSuccess | function | function to call on success | |
onError | function | function to call on error |
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.