diff --git a/android/app/build.gradle b/android/app/build.gradle index 2b14283de13b..f6447f45e5bf 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -90,8 +90,8 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion multiDexEnabled rootProject.ext.multiDexEnabled - versionCode 1001039605 - versionName "1.3.96-5" + versionCode 1001039606 + versionName "1.3.96-6" } flavorDimensions "default" diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist index 90b10826e938..dc1fdd58b542 100644 --- a/ios/NewExpensify/Info.plist +++ b/ios/NewExpensify/Info.plist @@ -40,7 +40,7 @@ CFBundleVersion - 1.3.96.5 + 1.3.96.6 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/ios/NewExpensifyTests/Info.plist b/ios/NewExpensifyTests/Info.plist index a46df987e8e4..910ad06f7517 100644 --- a/ios/NewExpensifyTests/Info.plist +++ b/ios/NewExpensifyTests/Info.plist @@ -19,6 +19,6 @@ CFBundleSignature ???? CFBundleVersion - 1.3.96.5 + 1.3.96.6 diff --git a/package-lock.json b/package-lock.json index 0694ff23dc98..cc2cc9d8a4de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "new.expensify", - "version": "1.3.96-5", + "version": "1.3.96-6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "new.expensify", - "version": "1.3.96-5", + "version": "1.3.96-6", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 99b9de3e34c7..3c36dc87b30b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.3.96-5", + "version": "1.3.96-6", "author": "Expensify, Inc.", "homepage": "https://new.expensify.com", "description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.", diff --git a/src/components/InvertedFlatList/index.js b/src/components/InvertedFlatList/index.js index 7cfa72d9c712..41ddc1a32636 100644 --- a/src/components/InvertedFlatList/index.js +++ b/src/components/InvertedFlatList/index.js @@ -1,7 +1,6 @@ import PropTypes from 'prop-types'; import React, {forwardRef, useEffect, useRef} from 'react'; import {DeviceEventEmitter, FlatList, StyleSheet} from 'react-native'; -import _ from 'underscore'; import styles from '@styles/styles'; import CONST from '@src/CONST'; import BaseInvertedFlatList from './BaseInvertedFlatList'; @@ -24,22 +23,14 @@ const propTypes = { // It's a HACK alert since FlatList has inverted scrolling on web function InvertedFlatList(props) { const {innerRef, contentContainerStyle} = props; - const listRef = React.createRef(); const lastScrollEvent = useRef(null); const scrollEndTimeout = useRef(null); const updateInProgress = useRef(false); const eventHandler = useRef(null); - useEffect(() => { - if (!_.isFunction(innerRef)) { - // eslint-disable-next-line no-param-reassign - innerRef.current = listRef.current; - } else { - innerRef(listRef); - } - - return () => { + useEffect( + () => () => { if (scrollEndTimeout.current) { clearTimeout(scrollEndTimeout.current); } @@ -47,8 +38,9 @@ function InvertedFlatList(props) { if (eventHandler.current) { eventHandler.current.remove(); } - }; - }, [innerRef, listRef]); + }, + [innerRef], + ); /** * Emits when the scrolling is in progress. Also, @@ -114,7 +106,7 @@ function InvertedFlatList(props) {