Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Commit

Permalink
adjust style
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Shibata committed Dec 4, 2017
1 parent 7c82577 commit 221ccd9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
5 changes: 2 additions & 3 deletions demo/src/App.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ export default (props, state, children) => {
fill='none'
cx={20}
cy={20}
r={10}
r={8.5}
/>
{ phase !== 'refreshing' &&
<polygon
<path
style={{
opacity: pMax,
transformOrigin: '50% 0%',
transform: `scale(${Math.min(pMax, 1)}, ${Math.min(pMax, 1)})`
}}
fill={color}
points='30,24 26,20 34,20'
d='M23.5,19l5,5l5-5H23.5z'
/>
}
</Svg>
Expand Down
8 changes: 4 additions & 4 deletions src/component/index.native.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import styled from 'styled-components/native'
import { Easing, Animated, View } from 'react-native'
import { Svg as NativeSvg, Circle as NativeCircle, Polygon as NativePolygon } from 'react-native-svg'
import { Svg as NativeSvg, Circle as NativeCircle, Path as NativePath } from 'react-native-svg'

class RotatingSvg extends Component {
constructor(props) {
Expand Down Expand Up @@ -161,18 +161,18 @@ export default (props, state, children) => {
fill='none'
cx={20}
cy={20}
r={10}
r={8.5}
/>
{ phase !== 'refreshing' &&
<NativePolygon
<NativePath
style={{
opacity: pMax,
transform: [
{ scale: Math.min(pMax, 1) }
]
}}
fill={color}
points='30,24 26,20 34,20'
d='M23.5,19l5,5l5-5H23.5z'
/>
}
</Svg>
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default class PullRefresh extends Component {
const Container = as
return (
<Container
ref='container'
{...props}
onScroll ={!disabled && ::this.onScroll}
onMouseDown ={!disabled && ::this.onDown}
Expand Down Expand Up @@ -139,7 +140,7 @@ PullRefresh.defaultProps = {
as: 'div',
style: {},
disabled: false,
color: '#787878',
color: '#4285f4',
bgColor: '#fff',
render: renderDefault,
zIndex: undefined
Expand Down

0 comments on commit 221ccd9

Please sign in to comment.