Skip to content

Remove Warning #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
9766551
change description
MaxGorshkov May 18, 2020
6a5c4fb
lib fix
ruslandjent May 18, 2020
785677f
Merge pull request #1 from SoftMediaLab/style_propTypes_fix
ruslandjent May 18, 2020
f31d0bb
0.16.2
MaxGorshkov May 18, 2020
2cdd07c
fixed
ruslandjent May 18, 2020
46b5ba8
Merge pull request #2 from SoftMediaLab/fix_lib_components
ruslandjent May 18, 2020
82e6504
0.16.3
MaxGorshkov May 18, 2020
786ef80
another fix
ruslandjent May 18, 2020
f6ca294
version
ruslandjent May 18, 2020
4cb7f99
0.16.5
MaxGorshkov May 18, 2020
b06a4ef
accessory props added
ruslandjent May 18, 2020
5e7a19f
Merge pull request #3 from SoftMediaLab/accesory
ruslandjent May 18, 2020
aa96939
value is now updateable
ruslandjent May 18, 2020
5e170e1
Merge pull request #4 from SoftMediaLab/value_fix
ruslandjent May 18, 2020
b3172af
0.16.6
MaxGorshkov May 18, 2020
45a5cee
add typings
nartich May 20, 2020
fcb390b
on startFocusAnimation warining fixed
nartich May 20, 2020
96e9dd4
0.16.7
nartich May 20, 2020
5ccb12c
fix typings export
nartich May 20, 2020
d492e6d
0.16.7
nartich May 20, 2020
724e957
0.16.8
nartich May 20, 2020
1e23b86
Merge pull request #5 from SoftMediaLab/typings_and_wrarnings_fixes
nartich May 20, 2020
c3828b2
uups, we can't use nativeDriver here, because of issue: `borderColor …
nartich May 20, 2020
dd29cd6
0.16.9
nartich May 20, 2020
d2d15f6
label width increased
ruslandjent Jun 25, 2020
ce0b186
linter fixes
ruslandjent Jun 25, 2020
75c3ec2
Merge pull request #6 from SoftMediaLab/label_width
ruslandjent Jun 25, 2020
6861d5f
0.16.10
Jun 26, 2020
85e22b8
label full width
ruslandjent Jul 2, 2020
6ec9a2e
conflicts resolved
ruslandjent Jul 2, 2020
c334317
Merge pull request #7 from SoftMediaLab/label_width
ruslandjent Jul 2, 2020
34970e6
0.16.12
Jul 3, 2020
9823e72
label width modified (#8)
ruslandjent Jul 6, 2020
71bbf54
Label width (#9)
ruslandjent Jul 7, 2020
0b711d4
version
ruslandjent Jul 7, 2020
8806e32
0.16.14
Jul 7, 2020
b7161b0
fix typing
nartich Jul 16, 2020
8074096
bump version
nartich Jul 16, 2020
e0afc97
0.16.16
nartich Jul 16, 2020
c71cb90
Add animation offset
etulo Jul 23, 2020
e1026e4
0.16.17
etulo Jul 23, 2020
f90dc28
0.16.18
etulo Jul 23, 2020
0d7c524
types fix (#10)
ruslandjent Aug 5, 2020
95d4483
0.16.19
etulo Aug 5, 2020
28e7ed2
fix
mrhat24 Aug 25, 2020
27c4e08
fix
mrhat24 Aug 25, 2020
30b0765
fixes
mrhat24 Aug 25, 2020
55bfb16
Fix label position
etulo Aug 25, 2020
1e006b2
0.16.21
Aug 26, 2020
adb7b88
#13
alex-shul Dec 30, 2020
7761f5b
Merge pull request #14 from SoftMediaLab/#13
alex-shul Dec 30, 2020
db986e3
0.16.22
MaxGorshkov Dec 30, 2020
f421a68
#15
khudkov Dec 17, 2021
fb7836c
#18
alex-shul Feb 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage
node_modules
*.lock
.idea

.DS_Store
*.sw[po]
122 changes: 122 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
// Type definitions for react-native-material-textfield 0.16
// Project: https://github.com/n4kz/react-native-material-textfield
// Definitions by: Ville Venäläinen <https://github.com/mindhivefi>
// Kyle Roach <https://github.com/iRoachie>
// Deividi Cavarzan <https://github.com/cavarzan>
// Neel bhasin <https://github.com/neelb2>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';
import {
StyleProp,
TextInputProps,
TextStyle,
ViewStyle,
} from 'react-native';

export interface ContentInset {
top?: number;
label?: number;
input?: number;
left?: number;
right?: number;
}

export interface TextFieldProps extends TextInputProps {
animationDuration?: number;
animationOffset?: number;

fontSize?: number;
labelFontSize?: number;
contentInset?: ContentInset;

style?: StyleProp<TextStyle>;
labelTextStyle?: StyleProp<TextStyle>;
titleTextStyle?: StyleProp<TextStyle>;
affixTextStyle?: StyleProp<TextStyle>;

tintColor?: string;
textColor?: string;
baseColor?: string;

label?: string;
title?: string;

characterRestriction?: number;

error?: string;
errorColor?: string;
errortTestId?: string;

lineWidth?: number;
activeLineWidth?: number;

disabled?: boolean;

disabledLineWidth?: number;

clearTextOnFocus?: boolean;

prefix?: string;
suffix?: string;

containerStyle?: StyleProp<ViewStyle>;
inputContainerStyle?: StyleProp<ViewStyle>;

onPress?(event: Event): void;
onChangeText?(text: string): void;

renderLeftAccessory?(): JSX.Element | boolean;
renderRightAccessory?(): JSX.Element | boolean;

disableLabelAnimation?: boolean;

lineType?: 'solid' | 'dotted' | 'dashed' | 'none';
disabledLineType?: 'solid' | 'dotted' | 'dashed' | 'none';

editable?: boolean;
multiline?: boolean;

formatText?(text: string): string;
}

/**
* Material Style Text Field
* @see https://github.com/n4kz/react-native-material-textfield/blob/master/src/components/field/index.js
*/
export class TextField extends React.Component<TextFieldProps, any> {
/*
* Acquire focus
*/
focus(): void;
/*
* Release focus
*/
blur(): void;
/*
* Clear text field
*/
clear(): void;
/*
* Get current value
*/
value(): string;
/*
* Get current focus state
*/
isFocused(): boolean;
/*
* Get current restriction state
*/
isRestricted(): boolean;
/*
* Set current value
*/
setValue(value?: string): void;
focused: boolean;
mounted: boolean;
}

export class OutlinedTextField extends TextField {}
export class FilledTextField extends TextField {}
Loading