@momo-kits/title 0.168.1-rn.88.0 → 0.169.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.tsx +2 -7
  2. package/package.json +3 -3
  3. package/styles.ts +6 -0
package/index.tsx CHANGED
@@ -155,9 +155,7 @@ const Title: FC<TitleProps> = ({
155
155
  setBadgeWidth(e.nativeEvent.layout.width);
156
156
  }
157
157
  }}
158
- style={{
159
- alignItems: 'center',
160
- }}
158
+ style={styles.badgeView}
161
159
  >
162
160
  <Badge
163
161
  style={styles.badge}
@@ -213,10 +211,7 @@ const Title: FC<TitleProps> = ({
213
211
 
214
212
  return (
215
213
  <View
216
- style={{
217
- height: lineHeight,
218
- justifyContent: 'center',
219
- }}
214
+ style={[styles.actionRightView, { height: lineHeight }]}
220
215
  >
221
216
  {!buttonTitle ? (
222
217
  <TouchableOpacity
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@momo-kits/title",
3
- "version": "0.168.1-rn.88.0",
3
+ "version": "0.169.1",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
7
7
  "peerDependencies": {
8
8
  "@momo-kits/foundation": "latest",
9
9
  "prop-types": "^15.7.2",
10
- "react": "*",
11
- "react-native": "*"
10
+ "react": "16.9.0",
11
+ "react-native": ">=0.55"
12
12
  },
13
13
  "license": "MoMo",
14
14
  "publishConfig": {
package/styles.ts CHANGED
@@ -47,6 +47,12 @@ export default StyleSheet.create({
47
47
  badge: {
48
48
  marginLeft: Spacing.XS,
49
49
  },
50
+ badgeView: {
51
+ alignItems: 'center',
52
+ },
53
+ actionRightView: {
54
+ justifyContent: 'center',
55
+ },
50
56
  description: {
51
57
  marginTop: Spacing.XS,
52
58
  },