fawaz-ahmed / react-native-read-more

React native library to show text in a condensed way and expand when needed. Drop in replacement for Text component and highly customizable. Can be used with expo or native cli for react native.
https://www.npmjs.com/package/@fawazahmed/react-native-read-more
MIT License
275 stars 37 forks source link

Unnecessary console statement #77

Closed steviec closed 1 year ago

steviec commented 1 year ago

The only output of my giant test suite right now is enabling global animation, which I'm assuming was accidentally left in the codebase.

My test output:

... tons of tests
 PASS  src/providers/AuthStatusModal.test.tsx (12.425 s)
 PASS  src/screens/LoggedOut/LoginScreen.test.tsx (12.613 s)
  ● Console

    console.log
      enabling global animation
      at enableGlobalLayoutAnimation (node_modules/@fawazahmed/react-native-read-more/dist/ReadMore.js:1:2404)

 PASS  src/screens/Onboarding/CheckEmailScreen.test.tsx
 PASS  src/screens/Account/AccountScreen.test.tsx
 PASS  src/components/StackedMenu/StackedMenuItem.test.tsx
... tons more tests
fawaz-ahmed commented 1 year ago

This has been fixed in latest version 3.0.2. Please update package. Thanks