Skip to content

Commit

Permalink
fix: marquee text flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed Nov 8, 2023
1 parent 4070ba7 commit f9d856a
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 49 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.19.4",
"@react-native-community/netinfo": "^11.0.0",
"@react-native-community/netinfo": "^11.1.0",
"@react-native-cookies/cookies": "git+https://github.com/alexhernandez/cookies.git#patch-1",
"@react-native/metro-config": "^0.74.0",
"@react-navigation/drawer": "^6.6.2",
Expand Down Expand Up @@ -111,16 +111,16 @@
"@babel/runtime": "^7.23.2",
"@react-native-community/eslint-config": "^3.2.0",
"@tsconfig/react-native": "^3.0.2",
"@types/jest": "^29.5.7",
"@types/jest": "^29.5.8",
"@types/md5": "^2.3.5",
"@types/node": "^20.8.10",
"@types/react": "^18.2.36",
"@types/react-native": "^0.72.5",
"@types/node": "^20.9.0",
"@types/react": "^18.2.37",
"@types/react-native": "^0.72.6",
"@types/react-native-background-timer": "^2.0.2",
"@types/react-native-share-menu": "^5.0.2",
"@types/react-native-video": "^5.0.14",
"@types/react-test-renderer": "^18.0.0",
"@types/uuid": "^9.0.1",
"@types/react-native-share-menu": "^5.0.5",
"@types/react-native-video": "^5.0.18",
"@types/react-test-renderer": "^18.0.6",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@welldone-software/why-did-you-render": "^7.0.1",
Expand Down
4 changes: 1 addition & 3 deletions src/components/player/TrackInfo/TrackInfoTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ interface SongTitleProps {
text?: string;
}
const SongTitle = (props: SongTitleProps) => {
return __DEV__ ? (
<Text style={props.style}>{props.text}</Text>
) : (
return (
<MarqueeText
duration={3000}
animationType={'bounce'}
Expand Down
74 changes: 37 additions & 37 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2510,10 +2510,10 @@
resolved "https://registry.npmjs.org/@react-native-community/eslint-plugin/-/eslint-plugin-1.3.0.tgz#9e558170c106bbafaa1ef502bd8e6d4651012bf9"
integrity sha512-+zDZ20NUnSWghj7Ku5aFphMzuM9JulqCW+aPXT6IfIXFbb8tzYTTOSeRFOtuekJ99ibW2fUCSsjuKNlwDIbHFg==

"@react-native-community/netinfo@^11.0.0":
version "11.0.0"
resolved "https://registry.npmjs.org/@react-native-community/netinfo/-/netinfo-11.0.0.tgz#64d86d5848e351514d7af9428a73c46eea7b4d5f"
integrity sha512-CbUEcRyORAqqnnwqv40s1h7ly1XlGBjjt6g4reRuB+nmOdLRbJJL+whhmIF5T+dwlXIzaGCNOuY7YJC+bx9GqQ==
"@react-native-community/netinfo@^11.1.0":
version "11.1.0"
resolved "https://registry.npmjs.org/@react-native-community/netinfo/-/netinfo-11.1.0.tgz#b3b2ab741a5d935e445685ade8a53d48775e082b"
integrity sha512-pIbCuqgrY7SkngAcjUs9fMzNh1h4soQMVw1IeGp1HN5//wox3fUVOuvyIubTscUbdLFKiltJAiuQek7Nhx1bqA==

"@react-native-cookies/cookies@git+https://github.com/alexhernandez/cookies.git#patch-1":
version "6.2.1"
Expand Down Expand Up @@ -2944,10 +2944,10 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/jest@^29.5.7":
version "29.5.7"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.7.tgz#2c0dafe2715dd958a455bc10e2ec3e1ec47b5036"
integrity sha512-HLyetab6KVPSiF+7pFcUyMeLsx25LDNDemw9mGsJBkai/oouwrjTycocSDYopMEwFhN2Y4s9oPyOCZNofgSt2g==
"@types/jest@^29.5.8":
version "29.5.8"
resolved "https://registry.npmjs.org/@types/jest/-/jest-29.5.8.tgz#ed5c256fe2bc7c38b1915ee5ef1ff24a3427e120"
integrity sha512-fXEFTxMV2Co8ZF5aYFJv+YeA08RTYJfhtN5c9JSv/mFEMe+xxjufCb+PHL+bJcMs/ebPUsBu+UNTEz+ydXrR6g==
dependencies:
expect "^29.0.0"
pretty-format "^29.0.0"
Expand Down Expand Up @@ -2989,10 +2989,10 @@
resolved "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==

"@types/node@^20.8.10":
version "20.8.10"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.10.tgz#a5448b895c753ae929c26ce85cab557c6d4a365e"
integrity sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==
"@types/node@^20.9.0":
version "20.9.0"
resolved "https://registry.npmjs.org/@types/node/-/node-20.9.0.tgz#bfcdc230583aeb891cf51e73cfdaacdd8deae298"
integrity sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==
dependencies:
undici-types "~5.26.4"

Expand All @@ -3011,15 +3011,15 @@
resolved "https://registry.npmjs.org/@types/react-native-background-timer/-/react-native-background-timer-2.0.2.tgz#22f9126124068a0ee6a812e16f98e270c2b9b2c7"
integrity sha512-cMAep0M5yqUHjiiRPvGiviqiJYdI45KSjbI5ufsIFSQGFwHwrHJC/8yawNhy0G3Gix6fufWLsEj6jC5niUNHiQ==

"@types/react-native-share-menu@^5.0.2":
version "5.0.4"
resolved "https://registry.npmjs.org/@types/react-native-share-menu/-/react-native-share-menu-5.0.4.tgz#8366c3bf703ce83edcc977d32dfa24f8f37a2281"
integrity sha512-Ju7fJzi9RQ4Ewpx9KXH7IPEoQ9HmxSqYcfE9viD8kA0Fod4WnTkO32vBrr7goR1coaGRhoaDjAuoTFVxAqDTtA==
"@types/react-native-share-menu@^5.0.5":
version "5.0.5"
resolved "https://registry.npmjs.org/@types/react-native-share-menu/-/react-native-share-menu-5.0.5.tgz#790c635ed991fb1541abce078c3d326369f204d3"
integrity sha512-RhJO1UYSbS9HAjJdbpkSs7seXUopuE8O7dXNFweo0bnA/zrUamggLhCKzBmYwyYQQ5D2NPC69G3eBI44gQN5MA==

"@types/react-native-video@^5.0.14":
version "5.0.17"
resolved "https://registry.npmjs.org/@types/react-native-video/-/react-native-video-5.0.17.tgz#9f89c968b935005770e26afe428eaa6c6ebfc4e8"
integrity sha512-/NBcr4L/1hkPBC0s7QtJmuqf4/eW8MZ+TtF7fXg32pvYAV/c+fjdLvxGKNdgaKfYEWRHNVw9pKFIZylyUb34iQ==
"@types/react-native-video@^5.0.18":
version "5.0.18"
resolved "https://registry.npmjs.org/@types/react-native-video/-/react-native-video-5.0.18.tgz#d0cec469e0cdc165e99ad04d500b90726a382253"
integrity sha512-z+8hNy7Q3UPU66w7vf9tWhk8s8pfj7eYodOpx4h0j36jfoWXtv7AFFmlT9SZk9u4wqyxDBbIjBOw8Ljj4YuRVA==
dependencies:
"@types/react" "*"
"@types/react-native" "*"
Expand All @@ -3039,18 +3039,18 @@
dependencies:
"@types/react" "*"

"@types/react-native@^0.72.5":
version "0.72.5"
resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.72.5.tgz#33a0d0c3c724395ee05bb37255937dcb3fae6d5f"
integrity sha512-HAt+EC576kbyg3+qruzbOLgVhgDHTHJ3d3rTkWRJ0wukze+l3ldWUkh1IarERHqsUlWwmkuYu0+4TQE5y1EjwA==
"@types/react-native@^0.72.6":
version "0.72.6"
resolved "https://registry.npmjs.org/@types/react-native/-/react-native-0.72.6.tgz#2c7a348ccb33637f482f36e4c6450d310805a290"
integrity sha512-5Tan0ejOjbYyrnRreRZ7ftcWbehQELoHevJQliAu0Rhqrsnall8dyodf/434jdDJuQEzLisBMg7ZkQNnghUXIw==
dependencies:
"@react-native/virtualized-lists" "^0.72.4"
"@types/react" "*"

"@types/react-test-renderer@^18.0.0":
version "18.0.5"
resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-18.0.5.tgz#b67a6ff37acd93d1b971ec4c838f69d52e772db0"
integrity sha512-PsnmF4Hpi61PTRX+dTxkjgDdtZ09kFFgPXczoF+yBfOVxn7xBLPvKP1BUrSasYHmerj33rhoJuvpIMsJuyRqHw==
"@types/react-test-renderer@^18.0.6":
version "18.0.6"
resolved "https://registry.npmjs.org/@types/react-test-renderer/-/react-test-renderer-18.0.6.tgz#1db32c09d3931a7f4ed7f31612f6cccb2910d28f"
integrity sha512-O2JT1J3/v/NaYHYmPf2DXBSqUGmp6iwhFPicES6Pc1Y90B9Qgu99mmaBGqfZFpVuXLzF/pNJB4K9ySL3iqFeXA==
dependencies:
"@types/react" "*"

Expand All @@ -3072,10 +3072,10 @@
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/react@^18.2.36":
version "18.2.36"
resolved "https://registry.npmjs.org/@types/react/-/react-18.2.36.tgz#bc68ffb4408e5d0c419b0760b2eaeec70aeeedb3"
integrity sha512-o9XFsHYLLZ4+sb9CWUYwHqFVoG61SesydF353vFMMsQziiyRu8np4n2OYMUSDZ8XuImxDr9c5tR7gidlH29Vnw==
"@types/react@^18.2.37":
version "18.2.37"
resolved "https://registry.npmjs.org/@types/react/-/react-18.2.37.tgz#0f03af69e463c0f19a356c2660dbca5d19c44cae"
integrity sha512-RGAYMi2bhRgEXT3f4B92WTohopH6bIXw05FuGlmJEnv/omEn190+QYEIYxIAuIBdKgboYYdVved2p1AxZVQnaw==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
Expand All @@ -3101,10 +3101,10 @@
resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.2.tgz#01284dde9ef4e6d8cef6422798d9a3ad18a66f8b"
integrity sha512-g7CK9nHdwjK2n0ymT2CW698FuWJRIx+RP6embAzZ2Qi8/ilIrA1Imt2LVSeHUzKvpoi7BhmmQcXz95eS0f2JXw==

"@types/uuid@^9.0.1":
version "9.0.6"
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.6.tgz#c91ae743d8344a54b2b0c691195f5ff5265f6dfb"
integrity sha512-BT2Krtx4xaO6iwzwMFUYvWBWkV2pr37zD68Vmp1CDV196MzczBRxuEpD6Pr395HAgebC/co7hOphs53r8V7jew==
"@types/uuid@^9.0.7":
version "9.0.7"
resolved "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.7.tgz#b14cebc75455eeeb160d5fe23c2fcc0c64f724d8"
integrity sha512-WUtIVRUZ9i5dYXefDEAI7sh9/O7jGvHg7Df/5O/gtH3Yabe5odI3UWopVR1qbPXQtvOxWu3mM4XxlYeZtMWF4g==

"@types/yargs-parser@*":
version "21.0.2"
Expand Down Expand Up @@ -10655,7 +10655,7 @@ react-native-tab-view@^3.5.1:

"react-native-text-ticker@git+https://[email protected]/lovegaoshi/react-native-text-ticker.git":
version "1.14.0"
resolved "git+https://[email protected]/lovegaoshi/react-native-text-ticker.git#e14a1a191b5925f27a0cfd8676b938146e109544"
resolved "git+https://[email protected]/lovegaoshi/react-native-text-ticker.git#7c39d53c12a9f65c5bd87e6655012c7044bb11b0"

"react-native-track-player@git+https://[email protected]/lovegaoshi/react-native-track-player.git#APM":
version "4.0.1"
Expand Down

0 comments on commit f9d856a

Please sign in to comment.