Skip to content

Commit

Permalink
Merge pull request #8 from GavinThomas1192/master
Browse files Browse the repository at this point in the history
Remove console logs from spinner js
  • Loading branch information
simform-solutions committed Oct 22, 2018
2 parents 6badf6a + 1cc2081 commit 7863bb3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions components/Spinner.js
Expand Up @@ -14,7 +14,7 @@ import {
import * as Animatable from 'react-native-animatable';
import styles from './styles/SpinnerButtonStyle';

function getSpinnerBackgroundStyle (spinnerType, customButtonStyle, defaultButtonStyle, spinnerOptions) {
function getSpinnerBackgroundStyle(spinnerType, customButtonStyle, defaultButtonStyle, spinnerOptions) {
const borderRadius = customButtonStyle.height ? customButtonStyle.height / 2 : defaultButtonStyle.height / 2;
let height = customButtonStyle.height ? customButtonStyle.height : defaultButtonStyle.height;
let width = height;
Expand All @@ -41,8 +41,7 @@ function getSpinnerBackgroundStyle (spinnerType, customButtonStyle, defaultButto
justifyContent: 'center',
alignItems: 'center',
};
console.log('customButtonStyle = ', customButtonStyle)
console.log('customSpinnerStyle = ', customSpinnerStyle)

switch (spinnerType) {
case 'BallIndicator':
return customSpinnerStyle;
Expand Down Expand Up @@ -185,7 +184,7 @@ const SpinnerComponent = (props) => {
/>
</Animatable.View>
</View>
);
);
case 'PacmanIndicator':
return (
<View style={{ width: width, alignItems: 'center', justifyContent: 'center' }}>
Expand All @@ -210,7 +209,7 @@ const SpinnerComponent = (props) => {
);
case 'SkypeIndicator':
let minScale = 0.2;
let maxScale = 1.0;
let maxScale = 1.0;
if (spinnerOptions !== undefined && spinnerOptions.minScale !== undefined) {
minScale = spinnerOptions.minScale;
}
Expand All @@ -225,8 +224,8 @@ const SpinnerComponent = (props) => {
count={indicatorCount}
// size={height - (10 * spinnerOptions.maxScale)}
size={height - 10}
// minScale={minScale}
// maxScale={maxScale}
// minScale={minScale}
// maxScale={maxScale}
/>
</Animatable.View>
</View>
Expand Down

0 comments on commit 7863bb3

Please sign in to comment.