Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
react-native-form-inputs
Advanced tools
Status : Pending work with defining style object structure # 📜React Native Inputs A customisable input library to quickly build complex forms in React Native ## Install ```npm install react-native-inputs``` ## Usage ```import { ParentComponent, Fie
Status : Pending work with defining style object structure
A customisable input library to quickly build complex forms in React Native
npm install react-native-inputs
import { ParentComponent, FieldInput, DatePickerInput, OptionInput } from ‘react-native-inputs’;
These components are built with the Formik API in mind and we recommend they are used as such. Support for other form-related APIs is more than welcome, just submit a PR! A short example for the formik-based use cases
<FieldInput
label="Email"
value={formik.values.email}
onChangeText={formik.handleChange('email')}
/>
<FieldInput
label="First name"
value={formik.values.firstName}
onChangeText={formik.handleChange('firstName')}
/>
<FieldInput
label="Last name"
value={formik.values.lastName}
onChangeText={formik.handleChange('lastName')}
/>
<FieldInput
label="Phone number"
value={formik.values.phoneNumber}
editable={false}
inputStyle={{ marginBottom: 0 }} />
<DateTimeInput
value={formik.values.birthdate}
onChangeValue={handleChange('birthdate')}
/>
<OptionInput
value={formik.values.relationship}
label="Relationship"
extraNote="(optional)"
onChangeValue={handleChange('relationship')}
options={relationshipOptions}
/>
This library implements styles through the React Context API. Any component you want to provide custom styles to should be a child component of a <ParentComponent value={customStyleObject}>
with the customStyleObject attribute fed to the value
prop.
The components will catch style attributes only meant for them, for eg. if we want to style the a FieldInput
instance
<ParentComponent value={{fieldInputStyle:{ fontSize : 20}}>
<FieldInput
onBlur={onFocusChange('email', false)}
onFocus={onFocusChange('email', true)}
placeholder={'Email'}
value={formik.values.email}
keyboardType="email-address"
autoCapitalize="none"
autoCorrect={false}
returnKeyType="go"
contextMenuHidden
onSubmitEditing={() => passwordInputRef.current.focus()}
onChangeText={formik.handleChange('email')}
label={'Email'}
editable={!formik.isSubmitting}>
</ParentComponent>
FAQs
Status : Pending work with defining style object structure # 📜React Native Inputs A customisable input library to quickly build complex forms in React Native ## Install ```npm install react-native-inputs``` ## Usage ```import { ParentComponent, Fie
The npm package react-native-form-inputs receives a total of 6 weekly downloads. As such, react-native-form-inputs popularity was classified as not popular.
We found that react-native-form-inputs 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.