Skip to content

Commit 08935bc

Browse files
committed
1. 更新flow版本
2. 去除多余的警告 3. 添加安卓缺少的权限 4. 优化安卓端不得姐列表高度不正确的问题 5. 优化之前的类型代码
1 parent 19f8d3d commit 08935bc

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.flowconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
[libs]
2525
node_modules/react-native/Libraries/react-native/react-native-interface.js
2626
node_modules/react-native/flow/
27-
node_modules/react-native/flow-github/
2827

2928
[options]
3029
emoji=true
@@ -69,4 +68,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
6968
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
7069

7170
[version]
72-
^0.86.0
71+
^0.94.0

app/pages/Hook/index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* @flow
3+
* Created by Rabbit on 2019-03-14.
4+
*/
5+
import React from 'react';
6+
import { View, Text, Image, StyleSheet } from 'react-native';
7+
8+
type Props = {};
9+
type State = {};
10+
export default class index extends React.Component<Props, State> {
11+
render() {
12+
return (
13+
<View style={styles.container}>
14+
15+
</View>
16+
);
17+
}
18+
}
19+
20+
const styles = StyleSheet.create({
21+
container: {
22+
flex: 1
23+
}
24+
});

0 commit comments

Comments
 (0)