forked from n4kz/react-native-material-textfield
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from gabrieldonadel/fix/deprecated-react-nativ…
…e-prop-types fix: Proptypes errors on react-native 0.69
- Loading branch information
Showing
36 changed files
with
519 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import TextField from './src/components/field' | ||
import FilledTextField from './src/components/field-filled' | ||
import OutlinedTextField from './src/components/field-outlined' | ||
import TextField from './src/components/field'; | ||
import FilledTextField from './src/components/field-filled'; | ||
import OutlinedTextField from './src/components/field-outlined'; | ||
|
||
export { TextField, FilledTextField, OutlinedTextField } | ||
export { TextField, FilledTextField, OutlinedTextField }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { StyleSheet } from 'react-native' | ||
import { StyleSheet } from 'react-native'; | ||
|
||
export default StyleSheet.create({ | ||
container: { | ||
top: 2, | ||
justifyContent: 'center', | ||
}, | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,35 @@ | ||
import 'react-native' | ||
import React from 'react' | ||
import renderer from 'react-test-renderer' | ||
import 'react-native'; | ||
import React from 'react'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import Counter from '.' | ||
import Counter from '.'; | ||
|
||
/* eslint-env jest */ | ||
|
||
const props = { | ||
baseColor: 'blue', | ||
errorColor: 'red', | ||
fontSize: 12, | ||
} | ||
}; | ||
|
||
it('renders null when limit is not set', () => { | ||
let counter = renderer.create(<Counter count={1} {...props} />).toJSON() | ||
let counter = renderer.create(<Counter count={1} {...props} />).toJSON(); | ||
|
||
expect(counter).toBeNull() | ||
}) | ||
expect(counter).toBeNull(); | ||
}); | ||
|
||
it('renders when limit is set', () => { | ||
let counter = renderer.create(<Counter count={1} limit={1} {...props} />).toJSON() | ||
let counter = renderer | ||
.create(<Counter count={1} limit={1} {...props} />) | ||
.toJSON(); | ||
|
||
expect(counter).toMatchSnapshot() | ||
}) | ||
expect(counter).toMatchSnapshot(); | ||
}); | ||
|
||
it('renders when limit is exceeded', () => { | ||
let counter = renderer.create(<Counter count={2} limit={1} {...props} />).toJSON() | ||
let counter = renderer | ||
.create(<Counter count={2} limit={1} {...props} />) | ||
.toJSON(); | ||
|
||
expect(counter).toMatchSnapshot() | ||
}) | ||
expect(counter).toMatchSnapshot(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.