![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@wezyy1/rn-floating-label-input
Advanced tools
A cross-platform Floating-Label-Input component for React Native.
This is a React-Native floating label input component, that visually combines an input label and the input itself into a single element. The floating label switches from placeholder mode to label when input is focused or has content in it.
Error message is included.
Installation can be done by using the npm install command:
$ npm install @wezyy1/rn-floating-label-input
import React from 'react';
import { View } from 'react-native';
import FloatingInput from '@wezyy1/rn-floating-label-input'
export default class App extends React.Component{
state = {
isInvalid:false,
email:'',
}
emailChange = (text) => {
this.setState({
email: text,
isInvalid: !this.isEmailRightFormat(text)
})
}
isEmailRightFormat = (text) => {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(text)){
return true
}
return false
}
render(){
return (
<View style={{width:'100%'}}>
<FloatingInput
label="E-mail*"
floatColor = "#187FC0"
isInvalid={this.state.isInvalid}
keyboardType="email-address"
errorText="Please enter a correct email."
onChangeText={this.emailChange}
value={this.state.email}
/>
</View>
)
}
}
Property | Description | Type | Default |
---|---|---|---|
label | The text of the input label. | String | |
floatColor | The color when the input field is focused. | String | '#187FC0' |
isInvalid | If true, the label will be displayed in an error state and show error message(if has). | bool | false |
keyboardType | keyboard type popup when the input is focused. | 'default', 'number-pad', 'decimal-pad', 'numeric', 'email-address', 'phone-pad' | 'default' |
errorText | The error message shows up when the input is invalid. | String | |
value | The value displayed the input field. | String | |
onChangeText | Callback fired when the value is changed. This function will get the value of the input. | Function | |
labelStyle | The style of the lable. | Style Object | |
inputStyle | The style of the text input. | Style Object | |
containerStyle | The style of the container. | Style Object |
FAQs
A cross-platform Floating-Label-Input component for React Native.
The npm package @wezyy1/rn-floating-label-input receives a total of 3 weekly downloads. As such, @wezyy1/rn-floating-label-input popularity was classified as not popular.
We found that @wezyy1/rn-floating-label-input 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.