Skip to content

Commit

Permalink
fix: remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Mar 29, 2022
1 parent ce14a48 commit afa1114
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
14 changes: 0 additions & 14 deletions packages/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
Image as RImage,
ScrollView as RScrollView,
SafeAreaView as RSafeAreaView,
Platform,
} from 'react-native'

const View = motify(RView)()
Expand All @@ -28,16 +27,3 @@ export {
ScrollView,
SafeAreaView,
}

console.error(`@motify/core is deprecated. It has moved to 'moti'. Please import from 'moti' instead. In the next version, this will throw an error.
${
Platform.OS == 'web'
? `If you're using Next.js, you should remove all @motify/ libraries from your next-transpile-modules list inside of next.config.js. If you aren't using Next.js, you should still remove @motify/ libraries from your Webpack config's tranpile list.`
: ''
}
Finally, find and replace all your imports.
For more info: https://github.com/nandorojo/moti/pull/136
`)
15 changes: 0 additions & 15 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Platform } from 'react-native'

export { default as motify } from './motify'
export { AnimatePresence } from 'framer-motion'

Expand All @@ -9,16 +7,3 @@ export { default as useAnimationState } from './use-animator'
export { default as useDynamicAnimation } from './use-dynamic-animation'
export * from './use-map-animate-to-style'
export * from './constants'

console.error(`@motify/core is deprecated. It has moved to 'moti'. Please import from 'moti' instead. In the next version, this will throw an error.
${
Platform.OS == 'web'
? `If you're using Next.js, you should remove all @motify/ libraries from your next-transpile-modules list inside of next.config.js. If you aren't using Next.js, you should still remove @motify/ libraries from your Webpack config's tranpile list.`
: ''
}
Finally, find and replace all your imports.
For more info: https://github.com/nandorojo/moti/pull/136
`)

0 comments on commit afa1114

Please sign in to comment.