diff --git a/packages/components/src/index.ts b/packages/components/src/index.ts index 71a3647..c34d278 100644 --- a/packages/components/src/index.ts +++ b/packages/components/src/index.ts @@ -5,7 +5,6 @@ import { Image as RImage, ScrollView as RScrollView, SafeAreaView as RSafeAreaView, - Platform, } from 'react-native' const View = motify(RView)() @@ -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 -`) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 9d51d2c..1ed7025 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,5 +1,3 @@ -import { Platform } from 'react-native' - export { default as motify } from './motify' export { AnimatePresence } from 'framer-motion' @@ -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 -`)