Skip to content

Commit

Permalink
chore: fix internal types
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Apr 21, 2020
1 parent 0f9ac79 commit ca6685b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/button/PaperOnboardingButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useMemo } from 'react';
import { Text, TouchableOpacity, TextStyle } from 'react-native';
import Animated, { round } from 'react-native-reanimated';
// import { TouchableOpacity } from 'react-native-gesture-handler';
import { PaperOnboardingSafeAreaInsetsType } from '../types';
import { styles } from './styles';

Expand Down Expand Up @@ -35,7 +34,7 @@ export const PaperOnboardingButton = (props: PaperOnboardingButtonProps) => {
});

// styles
const containerStyle = useMemo(
const containerStyle: any = useMemo(
() => [
styles.container,
{
Expand Down
4 changes: 2 additions & 2 deletions src/indicator/PaperOnboardingIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const PaperOnboardingIndicator = (
[size, color]
);

const fillStyle = useMemo(
const fillStyle: any = useMemo(
() => [
styles.fill,
{
Expand All @@ -81,7 +81,7 @@ export const PaperOnboardingIndicator = (
[color, size, animatedBackgroundOpacity]
);

const iconStyle = useMemo(
const iconStyle: any = useMemo(
() => [
styles.iconContainer,
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const PaperOnboardingIndicatorsContainer = (
}, [data, indicatorSize]);

// style
const containerStyle = useMemo(
const containerStyle: any = useMemo(
() => [
styles.container,
{
Expand Down
10 changes: 6 additions & 4 deletions src/page/PaperOnboardingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React, { useMemo } from 'react';
import { Text, TextStyle } from 'react-native';
import { Svg, Circle } from 'react-native-svg';
import Animated, { add } from 'react-native-reanimated';
import Animated from 'react-native-reanimated';
import {
PaperOnboardingItemType,
PaperOnboardingSafeAreaInsetsType,
PaperOnboardingScreenDimensions,
} from '../types';
import { styles } from './styles';

const { interpolate, Extrapolate } = Animated;
const { interpolate, add, Extrapolate } = Animated;
const AnimatedCircle = Animated.createAnimatedComponent(Circle);

interface PaperOnboardingPageProps {
Expand Down Expand Up @@ -83,7 +83,7 @@ export const PaperOnboardingPage = (props: PaperOnboardingPageProps) => {
);

// styles
const contentContainerStyle = useMemo(
const contentContainerStyle: any = useMemo(
() => [
styles.contentContainer,
{
Expand Down Expand Up @@ -121,7 +121,7 @@ export const PaperOnboardingPage = (props: PaperOnboardingPageProps) => {
[item, descriptionStyleOverride]
);

const imageContainerStyle = useMemo(
const imageContainerStyle: any = useMemo(
() => [
styles.imageContainer,
{
Expand All @@ -135,8 +135,10 @@ export const PaperOnboardingPage = (props: PaperOnboardingPageProps) => {
<Animated.View style={styles.container}>
<Svg style={styles.background}>
<AnimatedCircle
// @ts-ignore
cx={animatedBackgroundLeftPosition}
cy={backgroundBottomPosition}
// @ts-ignore
r={animatedBackgroundSize}
fill={item.color}
/>
Expand Down

0 comments on commit ca6685b

Please sign in to comment.