Skip to content

Commit ce3a8cd

Browse files
authored
Merge pull request #1 from CNLBW/sig
修改已废弃属性
2 parents 114d1ad + 2dd1a7e commit ce3a8cd

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

harmony/.gitkeep

Whitespace-only changes.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "react-native-material-buttons",
3-
"version": "0.6.0",
2+
"name": "@react-native-oh-tpl/react-native-material-buttons",
3+
"version": "0.6.0-0.0.1",
44
"license": "BSD-3-Clause",
55
"author": "Alexander Nazarov <n4kz@n4kz.com>",
66

@@ -12,7 +12,7 @@
1212

1313
"repository": {
1414
"type": "git",
15-
"url": "git://github.com/n4kz/react-native-material-buttons.git"
15+
"url": "git://github.com/react-native-oh-library/react-native-material-buttons.git"
1616
},
1717

1818
"dependencies": {
@@ -31,6 +31,10 @@
3131
"eslint-plugin-react": "^7.0.0"
3232
},
3333

34+
"harmony": {
35+
"alias": "react-native-material-buttons"
36+
},
37+
3438
"scripts": {
3539
"lint": "eslint src example/app.js example/index.js"
3640
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ npm run ios # or npm run android
9999

100100
BSD License
101101

102-
Copyright 2017-2019 Alexander Nazarov. All rights reserved.
102+
Copyright 2017-2019 Alexander Nazarov. All rights reserved.

src/components/raised-text-button/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PropTypes from 'prop-types';
22
import React, { PureComponent } from 'react';
3-
import { Animated } from 'react-native';
3+
import { Animated,Text } from 'react-native';
44

55
import RaisedButton from '../raised-button';
66
import { styles } from './styles';
@@ -16,7 +16,7 @@ export default class RaisedTextButton extends PureComponent {
1616

1717
title: PropTypes.string.isRequired,
1818
titleColor: PropTypes.string,
19-
titleStyle: Animated.Text.propTypes.style,
19+
titleStyle: Text.propTypes.style,
2020
disabledTitleColor: PropTypes.string,
2121
};
2222

src/components/text-button/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PropTypes from 'prop-types';
22
import React, { PureComponent } from 'react';
3-
import { Animated } from 'react-native';
3+
import { Animated,Text } from 'react-native';
44

55
import Button from '../button';
66
import { styles } from './styles';
@@ -21,7 +21,7 @@ export default class TextButton extends PureComponent {
2121

2222
title: PropTypes.string.isRequired,
2323
titleColor: PropTypes.string,
24-
titleStyle: Animated.Text.propTypes.style,
24+
titleStyle: Text.propTypes.style,
2525
disabledTitleColor: PropTypes.string,
2626
};
2727

0 commit comments

Comments
 (0)