Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ module.exports = {
message: 'use modal.spacing from theme/index.ts',
},
{
name: 'react-native-fast-image',
name: '@d11/react-native-fast-image',
importNames: ['default'],
message:
'If images come from our backend, use libs/resizing-image-on-demand/FastImage instead. Otherwise you can use react-native-fast-image',
Expand Down
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'xcodeproj', '< 1.26.0'
gem 'concurrent-ruby', '< 1.3.4'

# Ruby 3.4.0 has removed some libraries from the standard library.
gem 'bigdecimal'
gem 'logger'
gem 'benchmark'
gem 'mutex_m'

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ GEM
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
base64 (0.2.0)
benchmark (0.1.0)
bigdecimal (2.0.0)
claide (1.1.0)
cocoapods (1.14.3)
addressable (~> 2.8)
Expand Down Expand Up @@ -231,6 +233,7 @@ GEM
json (2.7.6)
jwt (2.10.1)
base64
logger (1.4.2)
mini_magick (4.13.2)
mini_mime (1.1.5)
minitest (5.25.4)
Expand Down Expand Up @@ -302,12 +305,16 @@ PLATFORMS

DEPENDENCIES
activesupport (>= 6.1.7.5, != 7.1.0)
benchmark
bigdecimal
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
concurrent-ruby (< 1.3.4)
fastlane
fastlane-plugin-appcenter
fastlane-plugin-firebase_app_distribution
fastlane-plugin-load_json!
logger
mutex_m
xcodeproj (< 1.26.0)

RUBY VERSION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react'
// eslint-disable-next-line no-restricted-imports
import FImage, { FastImageProps, OnLoadEvent } from 'react-native-fast-image'
import FImage, { FastImageProps, OnLoadEvent } from '@d11/react-native-fast-image'
import React, { useEffect } from 'react'

function FastImage(props: FastImageProps) {
useEffect(() => {
Expand Down
10 changes: 10 additions & 0 deletions __mocks__/react-native-gesture-handler.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// TODO(PC-39019): no need this mock if Touchables from rngh are no longer used

const rngh = jest.requireActual('react-native-gesture-handler')
const rn = jest.requireActual('react-native')

module.exports = {
...rngh,
TouchableOpacity: rn.TouchableOpacity,
TouchableWithoutFeedback: rn.TouchableWithoutFeedback,
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ exports[`<AccessibilityFiltersModal /> should render modal correctly 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[Function]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
exports[`QuitSignupModal should render correctly 1`] = `
<Modal
animationType="fade"
hardwareAccelerated={false}
onRequestClose={[Function]}
statusBarTranslucent={true}
transparent={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`<EmailResendModal /> should render correctly 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[MockFunction]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`<CookiesConsent/> should render correctly 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[Function]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`VideoModal should render correctly if modal visible 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[Function]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`<DMSModal/> should render correctly 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[MockFunction]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
exports[`<QuitIdentityCheckModal/> should render correctly 1`] = `
<Modal
animationType="fade"
hardwareAccelerated={false}
onRequestClose={[Function]}
statusBarTranslucent={true}
testID="modal-quit-identity-check-stepper"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`<CodeNotReceivedModal /> should have a different color if one attempt r
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[MockFunction]}
onModalHide={[Function]}
Expand Down Expand Up @@ -495,7 +494,6 @@ exports[`<CodeNotReceivedModal /> should match snapshot 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[MockFunction]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`<PhoneValidationTipsModal /> should match snapshot 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[MockFunction]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`HomeLocationModal should render correctly if modal visible 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[Function]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ exports[`SearchLocationModal should render correctly if modal visible 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[Function]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ exports[`VenueMapLocationModal should render correctly if modal visible 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[Function]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
exports[`AskNotificationsModal should render properly 1`] = `
<Modal
animationType="fade"
hardwareAccelerated={false}
onRequestClose={[Function]}
statusBarTranslucent={true}
transparent={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
exports[`PushNotificationsModal should render properly 1`] = `
<Modal
animationType="fade"
hardwareAccelerated={false}
onRequestClose={[MockFunction]}
statusBarTranslucent={true}
testID="modal-notifications-permission-modal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`FavoriteAuthModal should match previous snapshot 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[Function]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`NotificationAuthModal should match previous snapshot 1`] = `
animationType="none"
deviceHeight={1334}
deviceWidth={750}
hardwareAccelerated={false}
hideModalContentWhileAnimating={false}
onBackdropPress={[Function]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
exports[`<ExpiredCreditModal/> should render correctly 1`] = `
<Modal
animationType="fade"
hardwareAccelerated={false}
onRequestClose={[MockFunction]}
statusBarTranslucent={true}
testID="modal-expired-credit"
Expand Down
Loading
Loading