1.1.23 • Published 2 years ago

@asfy/rn-inputs v1.1.23

Weekly downloads
252
License
ISC
Repository
github
Last release
2 years ago

asfy-npm-inputs

const formState, dispatchFormState = useReducer(formReducer, { inputValues: { amOpen0: currentInfo.amOpen0 ? "": '', }, inputValidities: { amOpen0: currentInfo.amOpen0 ? true : false, }, formIsValid: currentInfo.amOpen0 ? true : false }); const inputChangeHandler = useCallback( (inputIdentifier, inputValue, inputValidity) => { console.log(inputIdentifier, inputValue,inputValidity) dispatchFormState({ type: FORM_INPUT_UPDATE, value: inputValue, isValid: inputValidity, input: inputIdentifier }); }, dispatchFormState );

#text input <Input id="test" initialValue="" initiallyValid={true} onInputChange={(id, value, isValid)=>{}} required={false} email min="" max="" minLength="" styleText={{}} styleInput={{}} label="label" errorText="error" differentFrom={[]} />

<InputHour id="test" initialValue="00:00" initiallyValid={true} onInputChange={(id, value, isValid) => { console.log("hour ", value) }} required={false} label="Chiusura:" errorText="error" style={{ width: 0.4 * Dimensions.get('window').width }} />

<InputCheckBox id="test" text="Orario continuato" initialValue={false} onChange={(id,value)=>{console.log(id , value)}}/>

<InputSelect id="item_id" text="Seleziona servizio" initialValue={currentBook.name && currentBook.name? currentBook.client.name : ""} initiallyValid={true} items={getSelectItems(services)} onInputChange={inputChangeHandler} />

1.1.23

2 years ago

1.1.22

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.17

2 years ago

1.1.12

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago