Skip to content

Commit ab19e5e

Browse files
author
Chris Bobbe
committed
deps: Replace unmaintained @remobile/react-native-toast.
See the parent for motivation.
1 parent a5b11fc commit ab19e5e

File tree

8 files changed

+1
-81
lines changed

8 files changed

+1
-81
lines changed

android/app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ dependencies {
198198
implementation project(':react-native-text-input-reset')
199199
implementation project(':react-native-image-picker')
200200
implementation project(':react-native-orientation')
201-
implementation project(':@remobile_react-native-toast')
202201
implementation project(':react-native-photo-view')
203202
implementation project(':rn-fetch-blob')
204203
implementation project(':react-native-sound')

android/app/src/main/java/com/zulipmobile/MainApplication.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import com.nikolaiwarner.RNTextInputReset.RNTextInputResetPackage;
1717
import com.reactnative.photoview.PhotoViewPackage;
1818
import com.reactnativecommunity.webview.RNCWebViewPackage;
19-
import com.remobile.toast.RCTToastPackage;
2019
import com.zmxv.RNSound.RNSoundPackage;
2120
import io.sentry.RNSentryPackage;
2221
import java.util.Arrays;
@@ -49,7 +48,6 @@ protected List<ReactPackage> getPackages() {
4948
new OrientationPackage(),
5049
new RNSentryPackage(),
5150
new PhotoViewPackage(),
52-
new RCTToastPackage(),
5351
new RNFetchBlobPackage(),
5452
new RNSoundPackage(),
5553
new RNDeviceInfo(),

android/settings.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ include ':react-native-image-picker'
1515
project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android')
1616
include ':react-native-orientation'
1717
project(':react-native-orientation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-orientation/android')
18-
include ':@remobile_react-native-toast'
19-
project(':@remobile_react-native-toast').projectDir = new File(rootProject.projectDir, '../node_modules/@remobile/react-native-toast/android')
2018
include ':react-native-photo-view'
2119
project(':react-native-photo-view').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-photo-view/android')
2220
include ':rn-fetch-blob'

flow-typed/npm/@remobile/react-native-toast_vx.x.x.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

ios/ZulipMobile.xcodeproj/project.pbxproj

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; };
6060
FAE95F3F80EF41D5B47C398D /* libRNCAsyncStorage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 03CBDFCF298745C49268F40D /* libRNCAsyncStorage.a */; };
6161
FD4D4D74C6B3463FAD06EDAA /* libLRDRCTSimpleToast.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AFC751239FBB487099FD7700 /* libLRDRCTSimpleToast.a */; };
62-
FF359794CBFF4ABF92423426 /* libRCTToast.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2CFB39BBD9094475BB03A3E4 /* libRCTToast.a */; };
6362
/* End PBXBuildFile section */
6463

6564
/* Begin PBXContainerItemProxy section */
@@ -490,13 +489,6 @@
490489
remoteGlobalIDString = 134814201AA4EA6300B7C361;
491490
remoteInfo = SafariViewManager;
492491
};
493-
CFCFE51F1F0011FA00C295CF /* PBXContainerItemProxy */ = {
494-
isa = PBXContainerItemProxy;
495-
containerPortal = 6922647B10C64653A76BF3E5 /* RCTToast.xcodeproj */;
496-
proxyType = 2;
497-
remoteGlobalIDString = 327633421BFAAD7E004DA88E;
498-
remoteInfo = RCTToast;
499-
};
500492
CFCFE52E1F0011FA00C295CF /* PBXContainerItemProxy */ = {
501493
isa = PBXContainerItemProxy;
502494
containerPortal = FC7EC6A752C243FB9F1B8442 /* RNFetchBlob.xcodeproj */;
@@ -532,7 +524,6 @@
532524
15797F7C979B46D49FC9D67F /* LRDRCTSimpleToast.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = LRDRCTSimpleToast.xcodeproj; path = "../node_modules/react-native-simple-toast/ios/LRDRCTSimpleToast.xcodeproj"; sourceTree = "<group>"; };
533525
1AED53B5E6AA4E0AA52DB0C1 /* libRNSafeArea.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNSafeArea.a; sourceTree = "<group>"; };
534526
27B3E49AB1EC4327B23863C1 /* RNCNetInfo.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNCNetInfo.xcodeproj; path = "../node_modules/@react-native-community/netinfo/ios/RNCNetInfo.xcodeproj"; sourceTree = "<group>"; };
535-
2CFB39BBD9094475BB03A3E4 /* libRCTToast.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRCTToast.a; sourceTree = "<group>"; };
536527
2E41C86FA25744F998C2BB02 /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = "<group>"; };
537528
2E8422FF1CBA4192B7E14D56 /* RNSentry.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNSentry.xcodeproj; path = "../node_modules/@sentry/react-native/ios/RNSentry.xcodeproj"; sourceTree = "<group>"; };
538529
3074EDA2D113487A925E187C /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = "<group>"; };
@@ -544,7 +535,6 @@
544535
51E1EDA028654E17A35C5BCA /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = "<group>"; };
545536
5597847AA2A04FEE894C9C9E /* libRCTOrientation.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRCTOrientation.a; sourceTree = "<group>"; };
546537
66E34CC6219226D10091B852 /* ZulipMobile-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ZulipMobile-Bridging-Header.h"; sourceTree = "<group>"; };
547-
6922647B10C64653A76BF3E5 /* RCTToast.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RCTToast.xcodeproj; path = "../node_modules/@remobile/react-native-toast/ios/RCTToast.xcodeproj"; sourceTree = "<group>"; };
548538
6DA76D9085EA458BB979ED8D /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = "<group>"; };
549539
6DE2C81628724C8AA4862247 /* libRNSound.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNSound.a; sourceTree = "<group>"; };
550540
713A523038564C27B0D2C2F7 /* RCTOrientation.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RCTOrientation.xcodeproj; path = "../node_modules/react-native-orientation/iOS/RCTOrientation.xcodeproj"; sourceTree = "<group>"; };
@@ -621,7 +611,6 @@
621611
D6D40984ED07473499B3F0C9 /* libRNDeviceInfo.a in Frameworks */,
622612
78FA95D8058C4372AB199525 /* libRNSound.a in Frameworks */,
623613
A83E9861943143E6A10A689E /* libSafariViewManager.a in Frameworks */,
624-
FF359794CBFF4ABF92423426 /* libRCTToast.a in Frameworks */,
625614
ADE3B79538D54689B14FEB10 /* libRNFetchBlob.a in Frameworks */,
626615
2318BF63A79049CA9F97E2E0 /* libRNSentry.a in Frameworks */,
627616
840D44FCCBB14F97B77D9443 /* libz.tbd in Frameworks */,
@@ -884,7 +873,6 @@
884873
ACCD980949044096B1BAD249 /* RNDeviceInfo.xcodeproj */,
885874
AF03F5DAC0924A13BDD49574 /* RNSound.xcodeproj */,
886875
96B2280917D24AE692AD70FE /* SafariViewManager.xcodeproj */,
887-
6922647B10C64653A76BF3E5 /* RCTToast.xcodeproj */,
888876
FC7EC6A752C243FB9F1B8442 /* RNFetchBlob.xcodeproj */,
889877
2E8422FF1CBA4192B7E14D56 /* RNSentry.xcodeproj */,
890878
06D71A26F8704D96B8C2D342 /* RNPhotoView.xcodeproj */,
@@ -1011,7 +999,6 @@
1011999
D5664A74FA8048439CBAB734 /* libRNDeviceInfo.a */,
10121000
6DE2C81628724C8AA4862247 /* libRNSound.a */,
10131001
E518466F398E458DA2C685AF /* libSafariViewManager.a */,
1014-
2CFB39BBD9094475BB03A3E4 /* libRCTToast.a */,
10151002
C2F7E19951E64FC7B6BBE612 /* libRNFetchBlob.a */,
10161003
B83DDAD2507A4F0EB47660BD /* libRNSentry.a */,
10171004
09AC2386C1724D5BA93B51E9 /* libRNPhotoView.a */,
@@ -1034,14 +1021,6 @@
10341021
name = Products;
10351022
sourceTree = "<group>";
10361023
};
1037-
CFCFE50B1F0011FA00C295CF /* Products */ = {
1038-
isa = PBXGroup;
1039-
children = (
1040-
CFCFE5201F0011FA00C295CF /* libRCTToast.a */,
1041-
);
1042-
name = Products;
1043-
sourceTree = "<group>";
1044-
};
10451024
CFCFE50D1F0011FA00C295CF /* Products */ = {
10461025
isa = PBXGroup;
10471026
children = (
@@ -1202,10 +1181,6 @@
12021181
ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
12031182
ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
12041183
},
1205-
{
1206-
ProductGroup = CFCFE50B1F0011FA00C295CF /* Products */;
1207-
ProjectRef = 6922647B10C64653A76BF3E5 /* RCTToast.xcodeproj */;
1208-
},
12091184
{
12101185
ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
12111186
ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
@@ -1704,13 +1679,6 @@
17041679
remoteRef = CFA67D1A1EC232E70070048E /* PBXContainerItemProxy */;
17051680
sourceTree = BUILT_PRODUCTS_DIR;
17061681
};
1707-
CFCFE5201F0011FA00C295CF /* libRCTToast.a */ = {
1708-
isa = PBXReferenceProxy;
1709-
fileType = archive.ar;
1710-
path = libRCTToast.a;
1711-
remoteRef = CFCFE51F1F0011FA00C295CF /* PBXContainerItemProxy */;
1712-
sourceTree = BUILT_PRODUCTS_DIR;
1713-
};
17141682
CFCFE52F1F0011FA00C295CF /* libRNFetchBlob.a */ = {
17151683
isa = PBXReferenceProxy;
17161684
fileType = archive.ar;
@@ -1856,7 +1824,6 @@
18561824
"$(SRCROOT)/../node_modules/react-native-device-info/RNDeviceInfo",
18571825
"$(SRCROOT)/../node_modules/react-native-sound/RNSound",
18581826
"$(SRCROOT)/../node_modules/react-native-safari-view",
1859-
"$(SRCROOT)/../node_modules/@remobile/react-native-toast/ios/RCTToast",
18601827
"$(SRCROOT)/../node_modules/rn-fetch-blob/ios/**",
18611828
"$(SRCROOT)/../node_modules/react-native-photo-view/ios/**",
18621829
"$(SRCROOT)/../node_modules/react-native-safe-area/ios/RNSafeArea",
@@ -1899,7 +1866,6 @@
18991866
"$(SRCROOT)/../node_modules/react-native-device-info/RNDeviceInfo",
19001867
"$(SRCROOT)/../node_modules/react-native-sound/RNSound",
19011868
"$(SRCROOT)/../node_modules/react-native-safari-view",
1902-
"$(SRCROOT)/../node_modules/@remobile/react-native-toast/ios/RCTToast",
19031869
"$(SRCROOT)/../node_modules/rn-fetch-blob/ios/**",
19041870
"$(SRCROOT)/../node_modules/react-native-photo-view/ios/**",
19051871
"$(SRCROOT)/../node_modules/react-native-safe-area/ios/RNSafeArea",
@@ -1946,7 +1912,6 @@
19461912
"$(SRCROOT)/../node_modules/react-native-device-info/RNDeviceInfo",
19471913
"$(SRCROOT)/../node_modules/react-native-sound/RNSound",
19481914
"$(SRCROOT)/../node_modules/react-native-safari-view",
1949-
"$(SRCROOT)/../node_modules/@remobile/react-native-toast/ios/RCTToast",
19501915
"$(SRCROOT)/../node_modules/rn-fetch-blob/ios/**",
19511916
"$(SRCROOT)/../node_modules/react-native-notifications/**",
19521917
"$(SRCROOT)/../node_modules/react-native-photo-view/ios/**",
@@ -1994,7 +1959,6 @@
19941959
"$(SRCROOT)/../node_modules/react-native-device-info/RNDeviceInfo",
19951960
"$(SRCROOT)/../node_modules/react-native-sound/RNSound",
19961961
"$(SRCROOT)/../node_modules/react-native-safari-view",
1997-
"$(SRCROOT)/../node_modules/@remobile/react-native-toast/ios/RCTToast",
19981962
"$(SRCROOT)/../node_modules/rn-fetch-blob/ios/**",
19991963
"$(SRCROOT)/../node_modules/react-native-notifications/**",
20001964
"$(SRCROOT)/../node_modules/react-native-photo-view/ios/**",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"@expo/react-native-action-sheet": "^3.4.0",
3434
"@react-native-community/async-storage": "^1.6.3",
3535
"@react-native-community/netinfo": "^3.2.1",
36-
"@remobile/react-native-toast": "^1.0.7",
3736
"@sentry/react-native": "^1.0.9",
3837
"@zulip/shared": "^0.0.2",
3938
"base-64": "^0.1.0",

src/utils/info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow strict-local */
22
import { Alert } from 'react-native';
3-
import Toast from '@remobile/react-native-toast';
3+
import Toast from 'react-native-simple-toast';
44

55
export const showToast = (message: string) => {
66
Toast.show(message);

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,11 +1060,6 @@
10601060
resolved "https://registry.yarnpkg.com/@react-native-community/netinfo/-/netinfo-3.2.1.tgz#cd073b81a4b978f7f55f1a960a0b56c462813e02"
10611061
integrity sha512-A2qANOnlRDVe+8kMbKMwy3/0bOlOA2+y8DyWg2Rv2KHICIfin+oxixbG0ewAOLQdLkSEyyumZXRmIVl7VI/KJg==
10621062

1063-
"@remobile/react-native-toast@^1.0.7":
1064-
version "1.0.7"
1065-
resolved "https://registry.yarnpkg.com/@remobile/react-native-toast/-/react-native-toast-1.0.7.tgz#b2e3684cdb13e1c9d9b4ed08e667157d4ad0fab2"
1066-
integrity sha512-iOD1PRnTSVr9sDWQdesIpfRrwJhHfeEQe5BpalQxC5OhM9thpiE6cu2NlW1KBWl0RJG4ZiJaF1xLlCo9YxU6dA==
1067-
10681063
"@rpl/badge-up@2.2.0":
10691064
version "2.2.0"
10701065
resolved "https://registry.yarnpkg.com/@rpl/badge-up/-/badge-up-2.2.0.tgz#79a5ccf72bdb1777390bb7e4caa08dc42d57dd9a"

0 commit comments

Comments
 (0)