-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
57 lines (55 loc) · 1.64 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React, { Component } from 'react'
import {
StyleSheet,
View,
Alert
} from 'react-native'
// import { Icon } from './src/components'
// {/* <Icon type='icon_font' name='p_video' size={30} color='blue' /> */}
import Circle from './src/components/loading/circle_loading'
import { shareUtil } from './src/utils'
import { SplashScreen } from './src/components'
export default class App extends Component {
// sizes={sizes}
// // sizes={[1.5, 1, 1]}
// circleStyle={circleStyle}
// />
// <ObjectAnimated
// value={this.animatedValue}
// sizes={sizes}
// // sizes={[1, 1.5, 1]}
// circleStyle={circleStyle}
// />
// <ObjectAnimated
// value={this.animatedValue}
// sizes={sizes}
// // sizes={[1, 1, 1.5]}
// circleStyle={circleStyle}
componentDidMount () {
SplashScreen.hide()
shareUtil.shareboard('12312321', null, 'https://www.baidu.com', '标题', [0, 1, 2, 3, 4], (code, message) => {
Alert.alert(code + message)
})
// shareUtil.share("text",null,'https://www.baidu.com','title', 0 , (code,message) =>{
// Alert.alert(code + message)
// });
}
render () {
return (
<View style={styles.container}>
<Circle
active
sizes={[[1.5, 1, 1], [1, 1.5, 1], [1, 1, 1.5]]}
circleStyles={[{ backgroundColor: 'blue' }, { backgroundColor: 'red' }, { backgroundColor: 'green' }]}
/>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center'
}
})