Skip to content

explicitly set the the useNativeDriver to false #264

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 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 0 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- `bottom` key for `contentInset` prop

## [0.16.0] - 2019-10-24

### Added
Expand Down
2 changes: 0 additions & 2 deletions src/components/affix/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export default class Affix extends PureComponent {

static propTypes = {
numberOfLines: PropTypes.number,
style: Animated.Text.propTypes.style,

color: PropTypes.string.isRequired,
fontSize: PropTypes.number.isRequired,

Expand Down
12 changes: 6 additions & 6 deletions src/components/field-filled/__snapshots__/test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ exports[`renders 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -313,9 +313,9 @@ exports[`renders accessory 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -475,9 +475,9 @@ exports[`renders counter 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -660,9 +660,9 @@ exports[`renders disabled value 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -822,9 +822,9 @@ exports[`renders title 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -1001,9 +1001,9 @@ exports[`renders value 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down
12 changes: 6 additions & 6 deletions src/components/field-outlined/__snapshots__/test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ exports[`renders 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -553,9 +553,9 @@ exports[`renders accessory 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -835,9 +835,9 @@ exports[`renders counter 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -1136,9 +1136,9 @@ exports[`renders disabled value 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -1418,9 +1418,9 @@ exports[`renders title 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down Expand Up @@ -1717,9 +1717,9 @@ exports[`renders value 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 12,
"paddingRight": 12,
},
Expand Down
26 changes: 13 additions & 13 deletions src/components/field/__snapshots__/test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ exports[`renders 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -306,9 +306,9 @@ exports[`renders counter 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -488,9 +488,9 @@ exports[`renders default value 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -647,9 +647,9 @@ exports[`renders disabled value 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -806,9 +806,9 @@ exports[`renders error 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -983,9 +983,9 @@ exports[`renders left accessory 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -1148,9 +1148,9 @@ exports[`renders multiline value 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -1332,9 +1332,9 @@ exports[`renders prefix 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -1491,9 +1491,9 @@ exports[`renders restriction 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -1674,9 +1674,9 @@ exports[`renders right accessory 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -1858,9 +1858,9 @@ exports[`renders suffix 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -2017,9 +2017,9 @@ exports[`renders title 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down Expand Up @@ -2193,9 +2193,9 @@ exports[`renders value 1`] = `
"alignItems": "flex-start",
"flexDirection": "row",
"justifyContent": "flex-end",
"minHeight": 8,
},
Object {
"minHeight": 8,
"paddingLeft": 0,
"paddingRight": 0,
},
Expand Down
5 changes: 2 additions & 3 deletions src/components/field/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export default class TextField extends PureComponent {
input: PropTypes.number,
left: PropTypes.number,
right: PropTypes.number,
bottom: PropTypes.number,
}),

labelOffset: Label.propTypes.offset,
Expand Down Expand Up @@ -129,7 +128,6 @@ export default class TextField extends PureComponent {
input: 8,
left: 0,
right: 0,
bottom: 8,
};

static labelOffset = {
Expand Down Expand Up @@ -223,7 +221,9 @@ export default class TextField extends PureComponent {

let options = {
toValue: this.focusState(),
useNativeDriver: false,
duration,

};

startAnimation(focusAnimation, options, this.onFocusAnimationEnd);
Expand Down Expand Up @@ -572,7 +572,6 @@ export default class TextField extends PureComponent {
let containerStyle = {
paddingLeft: contentInset.left,
paddingRight: contentInset.right,
minHeight: contentInset.bottom,
};

let styleProps = {
Expand Down
1 change: 1 addition & 0 deletions src/components/field/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default StyleSheet.create({
},

helperContainer: {
minHeight: 8,
flexDirection: 'row',
justifyContent: 'flex-end',
alignItems: 'flex-start',
Expand Down
2 changes: 0 additions & 2 deletions src/components/helper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export default class Helper extends PureComponent {

disabled: PropTypes.bool,

style: Animated.Text.propTypes.style,

baseColor: PropTypes.string,
errorColor: PropTypes.string,

Expand Down
1 change: 0 additions & 1 deletion src/components/label/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default class Label extends PureComponent {
y1: PropTypes.number,
}),

style: Animated.Text.propTypes.style,
label: PropTypes.string,
};

Expand Down