Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-native-input-sheet
Advanced tools
A simple react native input component , allows user inputs something from the sheet come from bottom, just like actionSheet
npm install react-native-input-sheet --save
import InputSheet, {InputSheetRef} from 'react-native-input-sheet';
const Example = () => {
const inputSheetRef = useRef<InputSheetRef>(null);
const showInputSheet = useCallback(() => {
inputSheetRef.current?.show();
}, []);
return (
<>
<Button onPress={showInputSheet}>Press me</Button>
<InputSheet ref={inputSheetRef} onSubmit={console.log} />
</>
)
}
Prop | Default | Required | Description |
---|---|---|---|
defaultValue | false | no | the default value of textInput |
required | true | no | Whether the text input value is required |
placeholder | '' | no | The placeholder of the textInput |
onSubmit | (text) => {} | no | Function that is called when user submits it |
buttonText | 'submit' | no | The string that is displayed on the submit button |
maskStyle | - | no | The style of the masker( ) |
style | - | no | The style of the container( ) |
inputStyle | - | no | The style of the textInput( ) |
buttonTextStyle | - | no | The style of the submit button text( ) |
autoClearText | true | no | Whether textInput needs be clear after onSubmit finished |
inputProps | undefined | n o | The props of textInput |
keyboardVerticalOffset | 10 2 | no | The keyboardVerticalOffset of KeyboardAvoidingView |
FAQs
A simple react native input component , allows user inputs something from the sheet come from bottom, just like actionSheet
The npm package react-native-input-sheet receives a total of 0 weekly downloads. As such, react-native-input-sheet popularity was classified as not popular.
We found that react-native-input-sheet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.