Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Jan 15, 2021
1 parent 7b81f0e commit 2b6d8f5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/redripify/use-map-animate-to-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function animationConfig<Animate>(
// TODO this doesn't work for now
if (__DEV__) {
console.error(
`[${PackageName}]: You passed transition type: decay, but this isn't working for now. Honestly, not sure why yet. Try passing other transition fields, like clamp, velocity, and deceleration. If that solves it, please open an issue at let me know.`
`[${PackageName}]: You passed transition type: decay, but this isn't working for now. Honestly, not sure why yet. Try passing other transition fields, like clamp, velocity, and deceleration. If that solves it, please open an issue and let me know.`
)
}
animation = withDecay
Expand Down Expand Up @@ -246,12 +246,6 @@ export default function useMapAnimateToStyle<Animate>({
Object.keys(mergedStyles).forEach((key, index) => {
'worklet'

// if (key === 'transform' && __DEV__) {
// console.error(
// 'Used `transform` array prop for animating styles. This is not supported. Instead of transform: [{ scale: 1 }] please use the values directly, such as {scale: 1}.'
// )
// }

const initialValue = initialStyle[key]
const value = mergedStyles[key]

Expand Down

0 comments on commit 2b6d8f5

Please sign in to comment.