npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mfrag38-react-native-textinput-with-icons-full

v1.1.1

Published

small react native package help you to make a material text input and allow you to add icons to the left and right side and icons have onPress feature

Downloads

9

Readme

MFRAG38 Material Text Input With Icons npm

Based On Material Text Input With Icons By Abdalla Emad Eldin

component for React Native (iOS & Android).

Usage

import React, { Component } from 'react';
import TextInput from 'mfrag38-react-native-textinput-with-icons-full';

export default class Example extends Component {
	state = {
		name: '',
	};

	render() {
		let { name } = this.state;

		return (
			<TextInput
				label='Name'
				// RTL must used when label in arabic ex: label="اللغة العربيه"
				leftIcon='thumbsup'
				leftIconType='oct'
				rippleColor='blue'
				rightIcon='react'
				rightIconType='material'
				value={name}
				refrance={refrance => {
					this.input = refrance;
				}}
				onChangeText={name => this.setState({ name })}
			/>
		);
	}
}

Supported Icons

Ionicons by Ben Sperry (v4.2.4, 696 icons)
Octicons by Github, Inc. (v8.0.0, 177 icons)
Evilicons by Alexander Madyankin & Roman Shamin (v1.10.1, 70 icons)
FontAwesome by Dave Gandy (v4.7.0, 675 icons)
MaterialCommunityIcons by MaterialDesignIcons.com (v2.8.94, 2894 icons)

Installation

1- Run yarn add mfrag38-react-native-textinput-with-icons-full

  #OR
  #npm install --save mfrag38-react-native-textinput-with-icons-full

2- Run react-native link react-native-vector-icons

Properties

Attention


    You must use RTL prop where label in arabic

Container

| name | type | default | | :-------------------- | :----- | :-------------------- | | containerWidth | Number | | containerMinWidth | Number | 150 | | containerMaxWidth | Number | screenWidth - '20%' | | containerMaxHeight | Number | 150 | | containerMarginBottom | Number | 0 |

Label

| name | type | default | | :--------------- | :----- | :-------- | | label | String | | labelDuration | Number | 200 | | labelColor | String | gray | | labelActiveTop | Number | -18 | | labelActiveColor | String | #3f51b5 | | labelActiveScale | Number | 0.8 |

Placeholder

| Name | Type | Default | | :--------------- | :----- | :------ | | placeholder | String | | placeholderColor | String | gray |

Input

| Name | Type | Default | | :------------------ | :--------------- | :------- | | minHeight | Number | | height | Number | | maxHeight | Number | | marginTop | Number | | marginRight | Number | | marginEnd | Number | | marginBottom | Number | 8 | | marginLeft | Number | | marginStart | Number | | paddingTop | Number | 20 | | paddingRight | Number | 0 | | paddingBottom | Number | 8 | | paddingLeft | Number | 0 | | color | String | black | | activeColor | String | | fontFamily | String | | fontSize | Number | 15 | | fontWeight | String or Number | normal | | onFocus | Function | | onBlur | Function | | onChangeText | Function | | onContentSizeChange | Function |

Underline

| Name | Type | Default | | :-------------------- | :----- | :-------- | | underlineDuration | Number | 200 | | underlineHeight | Number | 1 | | underlineColor | String | gray | | underlineActiveColor | String | #3f51b5 | | underlineActiveHeight | Number | 2 |

ErrorHelper

| Name | Type | Default | | :------------------- | :----- | :------------ | | error | String | | errorBackgroundColor | String | Transparent | | errorPaddingTop | Number | 8 | | errorColor | String | #fc1f4a | | errorFontSize | Number | 12 |

Icons

| Name | Type | Default | | :--------------- | :------- | :--------------------- | | leftIcon | String | | leftIconSize | Number | 15 | | leftIconColor | String | #777777 | | leftIconType | String | ion | | onPressLeftIcon | Function | | rightIcon | String | | rightIconSize | Number | 15 | | rightIconColor | String | #777777 | | rightIconType | String | ion | | onPressRightIcon | Function | | rippleColor | String | rgba(220,220,220,10) |

Icon Types

| Name | Type | iconLibrary | | :------- | :----- | :--------------------- | | ion | String | IonIcons | | oct | String | Octicons | | evil | String | Evilicons | | awesome | String | FontAwesome | | material | String | MaterialCommunityIcons |

Other TextInput properties will also work

## License

The MIT License.

See [LICENSE](LICENSE)