@momo-kits/slider 0.0.44-beta → 0.0.44-beta.11

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.
package/DefaultMarker.js CHANGED
@@ -1,72 +1,73 @@
1
1
  import React from 'react';
2
2
  import {
3
- View, StyleSheet, Platform, TouchableHighlight
3
+ View,
4
+ StyleSheet,
5
+ Platform,
6
+ TouchableHighlight,
7
+ Text,
4
8
  } from 'react-native';
5
- import { Colors } from '@momo-kits/core';
9
+ import {Colors, Radius} from '@momo-kits/core';
10
+ // import {Radius} from '../../core';
6
11
 
7
12
  class DefaultMarker extends React.Component {
8
- render() {
9
- const {
10
- enabled,
11
- markerStyle,
12
- pressed,
13
- pressedMarkerStyle,
14
- disabledMarkerStyle
15
- } = this.props;
16
- return (
17
- <TouchableHighlight>
18
- <View
19
- style={
20
- enabled
21
- ? [
22
- styles.markerStyle,
23
- markerStyle,
24
- pressed && styles.pressedMarkerStyle,
25
- pressed && pressedMarkerStyle,
26
- ]
27
- : [
28
- styles.markerStyle,
29
- styles.disabled,
30
- disabledMarkerStyle,
31
- ]
32
- }
33
- />
34
- </TouchableHighlight>
35
- );
36
- }
13
+ render() {
14
+ const {
15
+ enabled,
16
+ markerStyle,
17
+ pressed,
18
+ pressedMarkerStyle,
19
+ disabledMarkerStyle,
20
+ } = this.props;
21
+ return (
22
+ <TouchableHighlight>
23
+ <View
24
+ style={
25
+ enabled
26
+ ? [
27
+ styles.markerStyle,
28
+ markerStyle,
29
+ pressed && styles.pressedMarkerStyle,
30
+ pressed && pressedMarkerStyle,
31
+ ]
32
+ : [styles.markerStyle, styles.disabled, disabledMarkerStyle]
33
+ }
34
+ />
35
+ </TouchableHighlight>
36
+ );
37
+ }
37
38
  }
38
39
 
39
40
  const styles = StyleSheet.create({
40
- markerStyle: {
41
- height: 24,
42
- width: 24,
43
- borderRadius: 12,
44
- borderWidth: 2,
45
- borderColor: Colors.pink_03,
46
- backgroundColor: '#FFFFFF',
47
- shadowColor: '#000000',
48
- shadowOffset: {
49
- width: 0,
50
- height: 3,
51
- },
52
- shadowRadius: 1,
53
- shadowOpacity: 0.2,
54
- elevation: 3
55
- },
56
- pressedMarkerStyle: {
57
- ...Platform.select({
58
- web: {},
59
- ios: {},
60
- android: {
61
- height: 20,
62
- width: 20,
63
- borderRadius: 20,
64
- },
65
- }),
66
- },
67
- disabled: {
68
- backgroundColor: '#d3d3d3',
41
+ markerStyle: {
42
+ height: 24,
43
+ width: 24,
44
+ borderRadius: 12,
45
+ borderWidth: 5,
46
+ borderColor: Colors.white,
47
+ backgroundColor: Colors.pink_05_b,
48
+ shadowColor: '#000',
49
+ shadowOffset: {
50
+ width: 0,
51
+ height: 4,
69
52
  },
53
+ shadowOpacity: 0.3,
54
+ shadowRadius: 4.65,
55
+ elevation: 8,
56
+ },
57
+ pressedMarkerStyle: {
58
+ ...Platform.select({
59
+ web: {},
60
+ ios: {},
61
+ android: {
62
+ height: 20,
63
+ width: 20,
64
+ borderRadius: 20,
65
+ },
66
+ }),
67
+ },
68
+ disabled: {
69
+ backgroundColor: '#d3d3d3',
70
+ },
70
71
  });
71
72
 
72
73
  export default DefaultMarker;
@@ -1,72 +1,66 @@
1
1
  import React from 'react';
2
- import {
3
- View, StyleSheet, Platform, TouchableHighlight
4
- } from 'react-native';
2
+ import {View, StyleSheet, Platform, TouchableHighlight} from 'react-native';
5
3
  import Colors from '../../core/colors';
6
4
 
7
5
  class DefaultMarker extends React.Component {
8
- render() {
9
- const {
10
- enabled,
11
- markerStyle,
12
- pressed,
13
- pressedMarkerStyle,
14
- disabledMarkerStyle
15
- } = this.props;
16
- return (
17
- <TouchableHighlight>
18
- <View
19
- style={
20
- enabled
21
- ? [
22
- styles.markerStyle,
23
- markerStyle,
24
- pressed && styles.pressedMarkerStyle,
25
- pressed && pressedMarkerStyle,
26
- ]
27
- : [
28
- styles.markerStyle,
29
- styles.disabled,
30
- disabledMarkerStyle,
31
- ]
32
- }
33
- />
34
- </TouchableHighlight>
35
- );
36
- }
6
+ render() {
7
+ const {
8
+ enabled,
9
+ markerStyle,
10
+ pressed,
11
+ pressedMarkerStyle,
12
+ disabledMarkerStyle,
13
+ } = this.props;
14
+ return (
15
+ <TouchableHighlight>
16
+ <View
17
+ style={
18
+ enabled
19
+ ? [
20
+ styles.markerStyle,
21
+ markerStyle,
22
+ pressed && styles.pressedMarkerStyle,
23
+ pressed && pressedMarkerStyle,
24
+ ]
25
+ : [styles.markerStyle, styles.disabled, disabledMarkerStyle]
26
+ }
27
+ />
28
+ </TouchableHighlight>
29
+ );
30
+ }
37
31
  }
38
32
 
39
33
  const styles = StyleSheet.create({
40
- markerStyle: {
41
- height: 24,
42
- width: 24,
43
- borderRadius: 12,
44
- borderWidth: 2,
45
- borderColor: Colors.pink_03,
46
- backgroundColor: '#FFFFFF',
47
- shadowColor: '#000000',
48
- shadowOffset: {
49
- width: 0,
50
- height: 3,
51
- },
52
- shadowRadius: 1,
53
- shadowOpacity: 0.2,
54
- elevation: 3
55
- },
56
- pressedMarkerStyle: {
57
- ...Platform.select({
58
- web: {},
59
- ios: {},
60
- android: {
61
- height: 20,
62
- width: 20,
63
- borderRadius: 20,
64
- },
65
- }),
66
- },
67
- disabled: {
68
- backgroundColor: '#d3d3d3',
34
+ markerStyle: {
35
+ height: 24,
36
+ width: 24,
37
+ borderRadius: 12,
38
+ borderWidth: 5,
39
+ borderColor: Colors.white,
40
+ backgroundColor: Colors.pink_05_b,
41
+ shadowColor: '#000',
42
+ shadowOffset: {
43
+ width: 0,
44
+ height: 4,
69
45
  },
46
+ shadowOpacity: 0.3,
47
+ shadowRadius: 4.65,
48
+ elevation: 8,
49
+ },
50
+ pressedMarkerStyle: {
51
+ ...Platform.select({
52
+ web: {},
53
+ ios: {},
54
+ android: {
55
+ height: 20,
56
+ width: 20,
57
+ borderRadius: 20,
58
+ },
59
+ }),
60
+ },
61
+ disabled: {
62
+ backgroundColor: '#d3d3d3',
63
+ },
70
64
  });
71
65
 
72
66
  export default DefaultMarker;