esoftplay-event 0.0.1-t → 0.0.1-u

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.
@@ -1,17 +1,15 @@
1
1
  // withHooks
2
+ // noPage
2
3
 
3
4
  import { LibIcon } from 'esoftplay/cache/lib/icon/import';
4
5
  import useSafeState from 'esoftplay/state';
5
6
  import React from 'react';
6
7
  import { Animated, TouchableOpacity } from 'react-native';
7
8
 
8
-
9
- export interface EventRefresh_buttonArgs {
10
-
11
- }
12
9
  export interface EventRefresh_buttonProps {
13
10
  onPress: () => void,
14
11
  size?: number
12
+ containerStyle?: any
15
13
  }
16
14
  export default function m(props: EventRefresh_buttonProps): any {
17
15
  const [anim, setAnim] = useSafeState(new Animated.Value(0))
@@ -31,7 +29,7 @@ export default function m(props: EventRefresh_buttonProps): any {
31
29
  })
32
30
 
33
31
  return (
34
- <TouchableOpacity onPress={() => { rotate(); props.onPress(); }} style={{ height: 30, width: 30, alignItems: 'center', justifyContent: 'center' }} >
32
+ <TouchableOpacity onPress={() => { rotate(); props.onPress(); }} style={{ height: 30, width: 30, alignItems: 'center', justifyContent: 'center', ...props.containerStyle }} >
35
33
  <Animated.View style={{ height: size + 8, width: size + 8, transform: [{ rotate: rotateAnim }], alignItems: 'center', justifyContent: 'center' }} >
36
34
  <LibIcon name="refresh" size={size} color="#999" />
37
35
  </Animated.View>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.1-t",
3
+ "version": "0.0.1-u",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {