packages = new PackageList(this).getPackages();
27 | // Packages that cannot be autolinked yet can be added manually here, for example:
28 | // packages.add(new MyReactNativePackage());
29 | return packages;
30 | }
31 |
32 | @Override
33 | protected String getJSMainModuleName() {
34 | return "index";
35 | }
36 | };
37 |
38 | @Override
39 | public ReactNativeHost getReactNativeHost() {
40 | return mReactNativeHost;
41 | }
42 |
43 | @Override
44 | public void onCreate() {
45 | super.onCreate();
46 | SoLoader.init(this, /* native exopackage */ false);
47 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
48 | }
49 |
50 | /**
51 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like
52 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
53 | *
54 | * @param context
55 | * @param reactInstanceManager
56 | */
57 | private static void initializeFlipper(
58 | Context context, ReactInstanceManager reactInstanceManager) {
59 | if (BuildConfig.DEBUG) {
60 | try {
61 | /*
62 | We use reflection here to pick up the class that initializes Flipper,
63 | since Flipper library is not available in release mode
64 | */
65 | Class> aClass = Class.forName("com.tmpmail.ReactNativeFlipper");
66 | aClass
67 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
68 | .invoke(null, context, reactInstanceManager);
69 | } catch (ClassNotFoundException e) {
70 | e.printStackTrace();
71 | } catch (NoSuchMethodException e) {
72 | e.printStackTrace();
73 | } catch (IllegalAccessException e) {
74 | e.printStackTrace();
75 | } catch (InvocationTargetException e) {
76 | e.printStackTrace();
77 | }
78 | }
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/App.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { NavigationContainer } from '@react-navigation/native';
3 | import { createNativeStackNavigator } from '@react-navigation/native-stack';
4 |
5 | import LoginScreen from "./components/LoginPage";
6 | import EmailScreen from "./components/EmailPage";
7 | import EmailMain from "./components/MainEmails";
8 | import ContentPage from "./components/ContentPage"
9 | import TermsScreen from "./components/TermsScreen"
10 | import Disclaimer from "./components/Disclaimer";
11 | import SettingsPage from "./components/SettingsPage"
12 |
13 | const Stack = createNativeStackNavigator();
14 |
15 | export default function App() {
16 | return (
17 |
18 |
26 |
27 |
34 |
35 |
42 |
43 |
44 |
51 |
52 |
64 |
65 |
77 |
78 |
90 |
91 |
103 |
104 |
105 |
106 | );
107 | }
108 |
--------------------------------------------------------------------------------
/components/SettingsPage.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {
3 | Text,
4 | View,
5 | StyleSheet,
6 | SafeAreaView,
7 | Dimensions,
8 | Image,
9 | TouchableOpacity,
10 | Switch,
11 | Linking,
12 | ScrollView,
13 | StatusBar,
14 | FlatList
15 | } from 'react-native';
16 |
17 | const Dev_Height = Dimensions.get("window").height
18 | const Dev_Width = Dimensions.get("window").width
19 |
20 | import Icons from 'react-native-vector-icons/AntDesign';
21 | import Icon from 'react-native-vector-icons/Feather';
22 |
23 | export default class SettingScreen extends React.Component {
24 |
25 | state = {
26 | visible: true,
27 | NotificationSwitch: false,
28 | }
29 |
30 | render() {
31 | return (
32 |
33 |
34 |
35 |
36 | About the App
37 |
38 |
39 | this.props.navigation.navigate("Terms")}>
41 |
42 | Terms Of Use
43 |
44 |
45 |
46 | this.props.navigation.navigate("disclaimer")}>
48 |
49 | Disclaimer
50 |
51 |
52 |
53 | Support
54 |
55 |
56 | Linking.openURL("https://forms.gle/bU83vnQj8fBnDKPg7")}>
58 | Report A Bug
59 |
60 |
61 |
62 | App Version
63 | 1.0
64 |
65 |
66 |
67 | );
68 | }
69 | }
70 |
71 | const styles = StyleSheet.create({
72 | container: {
73 | flex: 1,
74 | height: Dev_Height - "10%",
75 | width: Dev_Width,
76 | backgroundColor: "#FFF"
77 | },
78 | settings_text_view: {
79 | height: 60,
80 | width: "100%",
81 | justifyContent: "center",
82 | },
83 | settings_text_style: {
84 | fontSize: 25,
85 | fontWeight: "bold",
86 | color: "#5D7FEB",
87 | marginLeft: "10%"
88 | },
89 | main_style_box: {
90 | flexDirection: "row",
91 | alignItems: "center",
92 | height: "10%",
93 | width: "100%",
94 | }
95 | });
--------------------------------------------------------------------------------
/android/app/src/debug/java/com/tmpmail/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the LICENSE file in the root
5 | * directory of this source tree.
6 | */
7 | package com.tmpmail;
8 |
9 | import android.content.Context;
10 | import com.facebook.flipper.android.AndroidFlipperClient;
11 | import com.facebook.flipper.android.utils.FlipperUtils;
12 | import com.facebook.flipper.core.FlipperClient;
13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22 | import com.facebook.react.ReactInstanceManager;
23 | import com.facebook.react.bridge.ReactContext;
24 | import com.facebook.react.modules.network.NetworkingModule;
25 | import okhttp3.OkHttpClient;
26 |
27 | public class ReactNativeFlipper {
28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
29 | if (FlipperUtils.shouldEnableFlipper(context)) {
30 | final FlipperClient client = AndroidFlipperClient.getInstance(context);
31 |
32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
33 | client.addPlugin(new ReactFlipperPlugin());
34 | client.addPlugin(new DatabasesFlipperPlugin(context));
35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context));
36 | client.addPlugin(CrashReporterPlugin.getInstance());
37 |
38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
39 | NetworkingModule.setCustomClientBuilder(
40 | new NetworkingModule.CustomClientBuilder() {
41 | @Override
42 | public void apply(OkHttpClient.Builder builder) {
43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
44 | }
45 | });
46 | client.addPlugin(networkFlipperPlugin);
47 | client.start();
48 |
49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
50 | // Hence we run if after all native modules have been initialized
51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
52 | if (reactContext == null) {
53 | reactInstanceManager.addReactInstanceEventListener(
54 | new ReactInstanceManager.ReactInstanceEventListener() {
55 | @Override
56 | public void onReactContextInitialized(ReactContext reactContext) {
57 | reactInstanceManager.removeReactInstanceEventListener(this);
58 | reactContext.runOnNativeModulesQueueThread(
59 | new Runnable() {
60 | @Override
61 | public void run() {
62 | client.addPlugin(new FrescoFlipperPlugin());
63 | }
64 | });
65 | }
66 | });
67 | } else {
68 | client.addPlugin(new FrescoFlipperPlugin());
69 | }
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/components/TermsScreen.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import {
3 | SafeAreaView,
4 | Text,
5 | View,
6 | Dimensions,
7 | StyleSheet,
8 | Image,
9 | TouchableOpacity,
10 | ScrollView,
11 | StatusBar
12 | } from "react-native"
13 |
14 | const Dev_Height = Dimensions.get('window').height
15 | const Dev_Width = Dimensions.get('window').width
16 |
17 | import Icon from "react-native-vector-icons/AntDesign"
18 |
19 | export default class TermsScreen extends React.Component {
20 |
21 | OnBack = () => {
22 | this.props.navigation.goBack()
23 | }
24 |
25 | render() {
26 | return (
27 |
28 |
29 |
30 |
35 |
36 |
37 |
38 |
39 | {'By using our services you agree to our Privacy policy which describes how we store information. \n\n Your temporary e-mail address is completely anonymous. Your email id automatically self-destructs as time elapses.\n\nTmp Mail does not permit the users to add images in the mails due to the following reasons: \n\n 1. Online theft \n 2. Misuse of the the app for other purpose \n 3. The images may contain virus \n\n The temporary email address that you can get at Tmp Mail can serve a great number of purposes. Its main function is to protect your confidentiality when browsing the Internet and Made Only for verification purposes.'}
40 |
41 |
42 |
43 |
44 |
45 |
46 | Ok Take Me Back
47 |
48 |
49 |
50 | )
51 | }
52 | }
53 |
54 | const styles = StyleSheet.create({
55 | container: {
56 | flex: 1,
57 | height: Dev_Height,
58 | width: Dev_Width,
59 | backgroundColor: "#1A1A1F"
60 | },
61 | image_view: {
62 | height: "100%",
63 | width: "100%"
64 | },
65 | inside_email_box_view: {
66 | height: "20%",
67 | width: "100%",
68 | marginTop: "10%"
69 | },
70 | text_main_view: {
71 | height: "50%",
72 | width: "90%",
73 | marginLeft: "5%",
74 | marginTop: "10%",
75 | },
76 | text_style: {
77 | color: "#FFF",
78 | fontSize: 16,
79 | },
80 | google_signin_view: {
81 | height: "20%",
82 | width: "100%",
83 | justifyContent: "center",
84 | alignItems: "center",
85 | },
86 | google_signin_buttom: {
87 | height: "35%",
88 | width: "80%",
89 | backgroundColor: "#657ee4",
90 | borderRadius: 10,
91 | justifyContent: "center",
92 | alignItems: "center",
93 | flexDirection: "row",
94 | shadowColor: '#1A1A1F',
95 | shadowOffset: { width: 0, height: 1 },
96 | shadowOpacity: 0.8,
97 | shadowRadius: 2,
98 | elevation: 5
99 | },
100 | google_signin_text: {
101 | fontSize: 14,
102 | color: "#FFF",
103 | marginLeft: "5%"
104 | },
105 | })
--------------------------------------------------------------------------------
/ios/TmpMail.xcodeproj/xcshareddata/xcschemes/TmpMail.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
53 |
55 |
61 |
62 |
63 |
64 |
70 |
72 |
78 |
79 |
80 |
81 |
83 |
84 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/ios/TmpMail/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 |
86 | # Determine the Java command to use to start the JVM.
87 | if [ -n "$JAVA_HOME" ] ; then
88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89 | # IBM's JDK on AIX uses strange locations for the executables
90 | JAVACMD="$JAVA_HOME/jre/sh/java"
91 | else
92 | JAVACMD="$JAVA_HOME/bin/java"
93 | fi
94 | if [ ! -x "$JAVACMD" ] ; then
95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96 |
97 | Please set the JAVA_HOME variable in your environment to match the
98 | location of your Java installation."
99 | fi
100 | else
101 | JAVACMD="java"
102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103 |
104 | Please set the JAVA_HOME variable in your environment to match the
105 | location of your Java installation."
106 | fi
107 |
108 | # Increase the maximum file descriptors if we can.
109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110 | MAX_FD_LIMIT=`ulimit -H -n`
111 | if [ $? -eq 0 ] ; then
112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113 | MAX_FD="$MAX_FD_LIMIT"
114 | fi
115 | ulimit -n $MAX_FD
116 | if [ $? -ne 0 ] ; then
117 | warn "Could not set maximum file descriptor limit: $MAX_FD"
118 | fi
119 | else
120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121 | fi
122 | fi
123 |
124 | # For Darwin, add options to specify how the application appears in the dock
125 | if $darwin; then
126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127 | fi
128 |
129 | # For Cygwin or MSYS, switch paths to Windows format before running java
130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133 |
134 | JAVACMD=`cygpath --unix "$JAVACMD"`
135 |
136 | # We build the pattern for arguments to be converted via cygpath
137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138 | SEP=""
139 | for dir in $ROOTDIRSRAW ; do
140 | ROOTDIRS="$ROOTDIRS$SEP$dir"
141 | SEP="|"
142 | done
143 | OURCYGPATTERN="(^($ROOTDIRS))"
144 | # Add a user-defined pattern to the cygpath arguments
145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147 | fi
148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
149 | i=0
150 | for arg in "$@" ; do
151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153 |
154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156 | else
157 | eval `echo args$i`="\"$arg\""
158 | fi
159 | i=`expr $i + 1`
160 | done
161 | case $i in
162 | 0) set -- ;;
163 | 1) set -- "$args0" ;;
164 | 2) set -- "$args0" "$args1" ;;
165 | 3) set -- "$args0" "$args1" "$args2" ;;
166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172 | esac
173 | fi
174 |
175 | # Escape application args
176 | save () {
177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178 | echo " "
179 | }
180 | APP_ARGS=`save "$@"`
181 |
182 | # Collect all arguments for the java command, following the shell quoting and substitution rules
183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184 |
185 | exec "$JAVACMD" "$@"
186 |
--------------------------------------------------------------------------------
/components/MainEmails.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import {
3 | View,
4 | Text,
5 | SafeAreaView,
6 | TouchableOpacity,
7 | TextInput,
8 | KeyboardAvoidingView,
9 | Dimensions,
10 | StyleSheet,
11 | Image,
12 | FlatList,
13 | PanResponder,
14 | Animated,
15 | TouchableHighlight,
16 | StatusBar
17 | } from "react-native"
18 |
19 | const Dev_Height = Dimensions.get('window').height
20 | const Dev_Width = Dimensions.get('window').width
21 |
22 | import Entypo from "react-native-vector-icons/Entypo"
23 |
24 | const colors = ["#F26D21", "#1496BB", "#BB86FC"]
25 |
26 | const generate = () => {
27 | var date = new Date().getDate(); //Current Date
28 | var month = new Date().getMonth() + 1; //Current Month
29 | var year = new Date().getFullYear(); //Current Year
30 | return date + "-" + month + "-" + year
31 | }
32 |
33 | function getRndInteger(min, max) {
34 | return Math.floor(Math.random() * (max - min)) + min;
35 | }
36 |
37 | export default class LoginPage extends React.Component {
38 |
39 | constructor(props) {
40 | super(props);
41 | this.state = {
42 | data: [],
43 | isLoading: true,
44 | email_from: "",
45 | email_subject: "",
46 | email_date: "",
47 | email_name: this.props.route.params.email.split("@")[0],
48 | email_domain: this.props.route.params.email.split("@")[1],
49 | email: "",
50 | email_id: "",
51 | value: 1
52 | }
53 | this.OnPressNew()
54 | }
55 |
56 | OnPressNew = () => {
57 | fetch("https://www.1secmail.com/api/v1/?action=getMessages&login=" + this.state.email_name + "&domain=" + this.state.email_domain)
58 | .then((response) => response.json())
59 | .then((json) => {
60 | this.setState({ isLoading: true })
61 | this.setState({ data: [] })
62 | for (i in json) {
63 | this.setState({ email_from: json[i]["from"] })
64 | this.setState({ email_subject: json[i]["subject"] });
65 | this.setState({ email_date: json[i]["date"] });
66 | this.setState({ email_id: json[i]["id"] });
67 | this.listformating()
68 | }
69 | })
70 | .catch((error) => console.error(error))
71 | .finally(() => this.setState({ isLoading: false }))
72 | }
73 |
74 | listformating = () => {
75 | const test = {
76 | "email_from": this.state.email_from,
77 | "email_subject": this.state.email_subject,
78 | "email_date": this.state.email_date,
79 | "color": colors[getRndInteger(0, 3)],
80 | "id": this.state.email_id
81 | }
82 | this.state.data.push(test)
83 | this.setState({ data: this.state.data })
84 | this.setState({ value: this.state.data.length })
85 | }
86 |
87 | onPressProps = (props) => {
88 | this.props.navigation.navigate("Content", {
89 | "email_id": props,
90 | "email_domain": this.state.email_domain,
91 | "email_name": this.state.email_name
92 | })
93 | }
94 |
95 | renderItem = ({ item }) => (
96 | this.onPressProps(item.id)}>
97 |
98 |
99 |
100 |
104 | {item.email_from}
105 |
106 |
107 |
108 | {item.email_subject}
109 | {item.email_date}
110 |
111 |
112 |
113 | );
114 |
115 | renderSeparator = () => (
116 |
122 | );
123 |
124 | _listEmptyComponent = () => {
125 | return (
126 |
127 |
128 |
129 |
130 | No Mails Found
131 |
132 |
133 |
134 | )
135 | }
136 |
137 |
138 | render() {
139 | return (
140 |
141 |
142 |
143 |
144 | 'key' + index}
152 | ListEmptyComponent={this._listEmptyComponent}
153 | />
154 |
155 |
156 | )
157 | }
158 | }
159 |
160 | const styles = StyleSheet.create({
161 | container: {
162 | flex: 1,
163 | height: Dev_Height,
164 | width: Dev_Width,
165 | backgroundColor: "#1A1A1F",
166 | },
167 | main_view: {
168 | height: "3%",
169 | width: "100%",
170 | alignItems: "center",
171 | justifyContent: "center"
172 | },
173 | flat_list_view: {
174 | height: "97%",
175 | width: "100%"
176 | },
177 | emails_main_view: {
178 | height: 120,
179 | width: "100%",
180 | alignItems: "center"
181 | },
182 | view_background: {
183 | backgroundColor: "#222228",
184 | height: "100%",
185 | width: "93%",
186 | borderRadius: 10
187 | },
188 | dot_view: {
189 | flexDirection: "row",
190 | alignItems: "center",
191 | height: "40%",
192 | width: "100%"
193 | },
194 | email_subject_text: {
195 | fontSize: 13,
196 | color: "white",
197 | marginLeft: "8%"
198 | },
199 | email_date_text: {
200 | fontSize: 13,
201 | color: "gray",
202 | marginLeft: "8%",
203 | marginTop: "4%"
204 | },
205 | image: {
206 | height: "50%",
207 | width: "90%"
208 | },
209 | Text_Container: {
210 | height: "20%",
211 | width: "100%",
212 | alignItems: "center",
213 | justifyContent: "center"
214 | },
215 | text: {
216 | fontSize: 16,
217 | color: "gray",
218 | }
219 | })
--------------------------------------------------------------------------------
/components/LoginPage.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import {
3 | View,
4 | Text,
5 | SafeAreaView,
6 | TouchableOpacity,
7 | TextInput,
8 | KeyboardAvoidingView,
9 | Dimensions,
10 | StyleSheet,
11 | Image,
12 | StatusBar,
13 | } from "react-native"
14 |
15 | import Icon from "react-native-vector-icons/AntDesign"
16 | import RBSheet from "react-native-raw-bottom-sheet";
17 | import SwipeRender from "react-native-swipe-render";
18 | import NetInfo from "@react-native-community/netinfo";
19 |
20 | const Dev_Height = Dimensions.get('screen').height
21 | const Dev_Width = Dimensions.get('screen').width
22 |
23 | export default class LoginPage extends React.Component {
24 |
25 | constructor(props) {
26 | super(props);
27 | this.state = {
28 | button_text: "Let's Start"
29 | }
30 | }
31 |
32 | OnSignIn = () => {
33 | NetInfo.fetch().then(state => {
34 | if (state.isConnected == true) {
35 | this.setState({ button_text: "Let's Start" })
36 | this.props.navigation.navigate("Email")
37 | }
38 | else {
39 | this.setState({ button_text: "Internet Required" })
40 | }
41 | });
42 | }
43 |
44 | InzialTest = () => {
45 | NetInfo.fetch().then(state => {
46 | if (state.isConnected == true) {
47 | this.RBSheet.open()
48 | }
49 | else {
50 | this.setState({ button_text: "Internet Required" })
51 | }
52 | });
53 | }
54 |
55 | onPressLogo = () => {
56 | this.RBSheet.open()
57 | }
58 |
59 | componentDidMount = () => {
60 | this.InzialTest()
61 | }
62 |
63 | render() {
64 | return (
65 |
66 |
67 | {
69 | this.RBSheet = ref;
70 | }}
71 | closeOnPressBack={true}
72 | animationType="fade"
73 | closeOnDragDown={false}
74 | openDuration={300}
75 | customStyles={{
76 | container: {
77 | borderTopLeftRadius: 15,
78 | borderTopRightRadius: 15,
79 | height: "30%",
80 | backgroundColor: "#1A1A1F"
81 | }
82 | }}
83 | >
84 |
95 |
96 |
97 |
102 |
103 | Protect Your Privacy !
104 |
105 | Protect Yourself From Hacker's. Survive long enough to be at potential risk to be hacked.
106 |
107 |
108 |
109 |
110 |
111 |
116 |
117 | Say No To Spam !
118 |
119 | The Throwaway ID Is Your Safe Heaven From Spam And Junk Emails Filling Up Your Inbox.
120 |
121 |
122 |
123 |
124 |
125 |
130 |
131 | You Are Anonymous !
132 |
133 | Since Making A Disposable Email Does Not Require Contact Information, It Keeps Up The Anonymity
134 |
135 |
136 |
137 |
138 |
139 |
143 |
144 | What Are You Waiting For ?
145 |
149 | Let's Start
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 | Login In Into Your TmpMail Account To Begin
159 |
160 |
161 |
162 |
163 |
164 | {this.state.button_text}
165 |
166 |
167 |
168 | )
169 | }
170 | }
171 |
172 | const styles = StyleSheet.create({
173 | container: {
174 | height: Dev_Height,
175 | width: Dev_Width,
176 | backgroundColor: "#1A1A1F"
177 | },
178 | logo_view: {
179 | height: "30%",
180 | width: "100%",
181 | justifyContent: "center",
182 | alignItems: "center"
183 | },
184 | login_Text: {
185 | color: "gray",
186 | fontSize: 14,
187 | marginTop: "3%"
188 | },
189 | Image_Style: {
190 | height: "30%",
191 | width: "60%"
192 | },
193 | google_signin_view: {
194 | height: "70%",
195 | width: "100%",
196 | justifyContent: "center",
197 | alignItems: "center",
198 | },
199 | google_signin_buttom: {
200 | height: "10%",
201 | width: "80%",
202 | backgroundColor: "#657ee4",
203 | borderRadius: 10,
204 | justifyContent: "center",
205 | alignItems: "center",
206 | flexDirection: "row",
207 | marginTop: "80%",
208 | shadowColor: '#1A1A1F',
209 | shadowOffset: { width: 0, height: 1 },
210 | shadowOpacity: 0.8,
211 | shadowRadius: 2,
212 | elevation: 5
213 | },
214 | google_signin_text: {
215 | fontSize: 14,
216 | color: "#FFF",
217 | marginLeft: "5%"
218 | },
219 | main_style_view_swipable: {
220 | height: "80%",
221 | width: "100%",
222 | justifyContent: "center",
223 | alignItems: "center",
224 | flexDirection: "row"
225 | },
226 | main_image_style: {
227 | height: "50%",
228 | width: "30%"
229 | },
230 | text_header_style: {
231 | color: "#F1F1F1",
232 | fontSize: 17,
233 | textAlign: 'center'
234 | },
235 | side_title_style: {
236 | color: "gray",
237 | fontSize: 15,
238 | marginTop: "5%",
239 | textAlign: 'center'
240 | },
241 | secondary_view: {
242 | justifyContent: "center",
243 | alignItems: "center",
244 | height: "100%",
245 | width: "50%"
246 | },
247 | lets_start_button: {
248 | shadowColor: '#1A1A1F',
249 | shadowOffset: { width: 0, height: 1 },
250 | shadowOpacity: 0.8,
251 | shadowRadius: 2,
252 | elevation: 5,
253 | height: "20%",
254 | width: "80%",
255 | backgroundColor: "#657ee4",
256 | borderRadius: 10,
257 | marginTop: "10%",
258 | justifyContent: "center",
259 | alignItems: "center"
260 | },
261 | })
262 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation. If none specified and
19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is
20 | * // default. Can be overridden with ENTRY_FILE environment variable.
21 | * entryFile: "index.android.js",
22 | *
23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format
24 | * bundleCommand: "ram-bundle",
25 | *
26 | * // whether to bundle JS and assets in debug mode
27 | * bundleInDebug: false,
28 | *
29 | * // whether to bundle JS and assets in release mode
30 | * bundleInRelease: true,
31 | *
32 | * // whether to bundle JS and assets in another build variant (if configured).
33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
34 | * // The configuration property can be in the following formats
35 | * // 'bundleIn${productFlavor}${buildType}'
36 | * // 'bundleIn${buildType}'
37 | * // bundleInFreeDebug: true,
38 | * // bundleInPaidRelease: true,
39 | * // bundleInBeta: true,
40 | *
41 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
42 | * // for example: to disable dev mode in the staging build type (if configured)
43 | * devDisabledInStaging: true,
44 | * // The configuration property can be in the following formats
45 | * // 'devDisabledIn${productFlavor}${buildType}'
46 | * // 'devDisabledIn${buildType}'
47 | *
48 | * // the root of your project, i.e. where "package.json" lives
49 | * root: "../../",
50 | *
51 | * // where to put the JS bundle asset in debug mode
52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
53 | *
54 | * // where to put the JS bundle asset in release mode
55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
56 | *
57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
58 | * // require('./image.png')), in debug mode
59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
60 | *
61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
62 | * // require('./image.png')), in release mode
63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
64 | *
65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
69 | * // for example, you might want to remove it from here.
70 | * inputExcludes: ["android/**", "ios/**"],
71 | *
72 | * // override which node gets called and with what additional arguments
73 | * nodeExecutableAndArgs: ["node"],
74 | *
75 | * // supply additional arguments to the packager
76 | * extraPackagerArgs: []
77 | * ]
78 | */
79 |
80 | project.ext.react = [
81 | enableHermes: false, // clean and rebuild if changing
82 | ]
83 |
84 | apply from: "../../node_modules/react-native/react.gradle"
85 |
86 | /**
87 | * Set this to true to create two separate APKs instead of one:
88 | * - An APK that only works on ARM devices
89 | * - An APK that only works on x86 devices
90 | * The advantage is the size of the APK is reduced by about 4MB.
91 | * Upload all the APKs to the Play Store and people will download
92 | * the correct one based on the CPU architecture of their device.
93 | */
94 | def enableSeparateBuildPerCPUArchitecture = false
95 |
96 | /**
97 | * Run Proguard to shrink the Java bytecode in release builds.
98 | */
99 | def enableProguardInReleaseBuilds = false
100 |
101 | /**
102 | * The preferred build flavor of JavaScriptCore.
103 | *
104 | * For example, to use the international variant, you can use:
105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
106 | *
107 | * The international variant includes ICU i18n library and necessary data
108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
109 | * give correct results when using with locales other than en-US. Note that
110 | * this variant is about 6MiB larger per architecture than default.
111 | */
112 | def jscFlavor = 'org.webkit:android-jsc:+'
113 |
114 | /**
115 | * Whether to enable the Hermes VM.
116 | *
117 | * This should be set on project.ext.react and mirrored here. If it is not set
118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
119 | * and the benefits of using Hermes will therefore be sharply reduced.
120 | */
121 | def enableHermes = project.ext.react.get("enableHermes", false);
122 |
123 | /**
124 | * Architectures to build native code for in debug.
125 | */
126 | def nativeArchitectures = project.getProperties().get("reactNativeDebugArchitectures")
127 |
128 | android {
129 | ndkVersion rootProject.ext.ndkVersion
130 |
131 | compileSdkVersion rootProject.ext.compileSdkVersion
132 |
133 | defaultConfig {
134 | applicationId "com.tmpmail"
135 | minSdkVersion rootProject.ext.minSdkVersion
136 | targetSdkVersion rootProject.ext.targetSdkVersion
137 | versionCode 1
138 | versionName "1.0"
139 | }
140 | signingConfigs {
141 | release {
142 | if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
143 | storeFile file(MYAPP_UPLOAD_STORE_FILE)
144 | storePassword MYAPP_UPLOAD_STORE_PASSWORD
145 | keyAlias MYAPP_UPLOAD_KEY_ALIAS
146 | keyPassword MYAPP_UPLOAD_KEY_PASSWORD
147 | }
148 | }
149 | }
150 | splits {
151 | abi {
152 | reset()
153 | enable enableSeparateBuildPerCPUArchitecture
154 | universalApk false // If true, also generate a universal APK
155 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
156 | }
157 | }
158 | signingConfigs {
159 | debug {
160 | storeFile file('debug.keystore')
161 | storePassword 'android'
162 | keyAlias 'androiddebugkey'
163 | keyPassword 'android'
164 | }
165 | }
166 | buildTypes {
167 | debug {
168 | signingConfig signingConfigs.debug
169 | if (nativeArchitectures) {
170 | ndk {
171 | abiFilters nativeArchitectures.split(',')
172 | }
173 | }
174 | }
175 | release {
176 | // Caution! In production, you need to generate your own keystore file.
177 | // see https://reactnative.dev/docs/signed-apk-android.
178 | signingConfig signingConfigs.debug
179 | minifyEnabled enableProguardInReleaseBuilds
180 | signingConfig signingConfigs.release
181 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
182 | }
183 | }
184 |
185 | // applicationVariants are e.g. debug, release
186 | applicationVariants.all { variant ->
187 | variant.outputs.each { output ->
188 | // For each separate APK per architecture, set a unique version code as described here:
189 | // https://developer.android.com/studio/build/configure-apk-splits.html
190 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
191 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
192 | def abi = output.getFilter(OutputFile.ABI)
193 | if (abi != null) { // null for the universal-debug, universal-release variants
194 | output.versionCodeOverride =
195 | defaultConfig.versionCode * 1000 + versionCodes.get(abi)
196 | }
197 |
198 | }
199 | }
200 | }
201 |
202 | dependencies {
203 | implementation fileTree(dir: "libs", include: ["*.jar"])
204 | //noinspection GradleDynamicVersion
205 | implementation "com.facebook.react:react-native:+" // From node_modules
206 |
207 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
208 |
209 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
210 | exclude group:'com.facebook.fbjni'
211 | }
212 |
213 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
214 | exclude group:'com.facebook.flipper'
215 | exclude group:'com.squareup.okhttp3', module:'okhttp'
216 | }
217 |
218 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
219 | exclude group:'com.facebook.flipper'
220 | }
221 |
222 | if (enableHermes) {
223 | def hermesPath = "../../node_modules/hermes-engine/android/";
224 | debugImplementation files(hermesPath + "hermes-debug.aar")
225 | releaseImplementation files(hermesPath + "hermes-release.aar")
226 | } else {
227 | implementation jscFlavor
228 | }
229 | }
230 |
231 | // Run this once to be able to run the application with BUCK
232 | // puts all compile dependencies into folder libs for BUCK to use
233 | task copyDownloadableDepsToLibs(type: Copy) {
234 | from configurations.implementation
235 | into 'libs'
236 | }
237 |
238 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
239 | apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
240 |
--------------------------------------------------------------------------------
/components/EmailPage.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import {
3 | View,
4 | Text,
5 | SafeAreaView,
6 | TouchableOpacity,
7 | Dimensions,
8 | StyleSheet,
9 | Image,
10 | AsyncStorage,
11 | Alert,
12 | ToastAndroid,
13 | Modal,
14 | TouchableHighlight,
15 | Animated,
16 | Easing,
17 | StatusBar,
18 | Clipboard
19 | } from "react-native"
20 |
21 | const Dev_Height = Dimensions.get('window').height
22 | const Dev_Width = Dimensions.get('window').width
23 |
24 | import Icon from "react-native-vector-icons/AntDesign"
25 | import { SwipeableFlatList } from 'react-native-swipeable-flat-list';
26 | import RBSheet from "react-native-raw-bottom-sheet";
27 | import moment from 'moment';
28 |
29 | const colors = ["#55E552", "#FF8A00", "#572CE8"]
30 |
31 |
32 | function getRndInteger(min, max) {
33 | return Math.floor(Math.random() * (max - min)) + min;
34 | }
35 |
36 | export default class EmailPage extends React.Component {
37 |
38 | OnLongPressEmail = (test) => {
39 | Clipboard.setString(test)
40 | ToastAndroid.show(" Email Copied ", ToastAndroid.LONG);
41 | }
42 |
43 | componentDidMount() {
44 | this.getMyObject()
45 | Animated.timing(this.state.verticalVal, { toValue: 10, duration: 1000, useNativeDriver: true, easing: Easing.inOut(Easing.quad) }).start();
46 | this.state.verticalVal.addListener(({ value }) => {
47 | if (value == 10) {
48 | Animated.timing(this.state.verticalVal, { toValue: 0, duration: 1000, useNativeDriver: true, easing: Easing.inOut(Easing.quad) }).start();
49 | }
50 | else if (value == 0) {
51 | Animated.timing(this.state.verticalVal, { toValue: 10, duration: 1000, useNativeDriver: true, easing: Easing.inOut(Easing.quad) }).start();
52 | }
53 | })
54 | }
55 |
56 | constructor(props) {
57 | super(props);
58 | this.state = {
59 | isLoading: true,
60 | email: "",
61 | data: [],
62 | value: 0,
63 | modalVisible: true,
64 | copy_email: "",
65 | verticalVal: new Animated.Value(0)
66 | }
67 | }
68 |
69 | onPressProps = (email, endtime) => {
70 | const currenttime = moment()
71 | if (moment(endtime).isAfter(currenttime)) {
72 | this.props.navigation.navigate("EmailNow", {
73 | "email": email
74 | })
75 | }
76 | else {
77 | this.RBSheet.open()
78 | }
79 | }
80 |
81 | deleteItemById = email => () => {
82 | const filteredData = this.state.data.filter(item => item.email !== email);
83 | this.setState({ data: filteredData });
84 | try {
85 | const jsonValue = JSON.stringify(filteredData)
86 | AsyncStorage.setItem('Emails', jsonValue)
87 | this.getMyObject()
88 | this.setState({ value: this.state.data.length })
89 | } catch (e) {
90 | // save error
91 | }
92 | }
93 |
94 |
95 | setObjectValue = async () => {
96 | try {
97 | const jsonValue = JSON.stringify(this.state.data)
98 | await AsyncStorage.setItem('Emails', jsonValue)
99 | this.setState({ value: this.state.data.length })
100 |
101 | } catch (e) {
102 | // save error
103 | }
104 | console.log('Done.')
105 | }
106 |
107 |
108 | getMyObject = async () => {
109 | try {
110 | const jsonValue = await AsyncStorage.getItem('Emails');
111 | if (jsonValue) {
112 | const data = JSON.parse(jsonValue);
113 | this.setState({ data: data, value: data.length });
114 | this.setState({ email: jsonValue[0], isLoading: true });
115 | this.setState({ value: this.state.data.length })
116 | }
117 | } catch (e) {
118 | // read error
119 | }
120 | };
121 |
122 | OnPressNew = () => {
123 | fetch('https://www.1secmail.com/api/v1/?action=genRandomMailbox&count=1')
124 | .then((response) => response.json())
125 | .then((json) => {
126 | this.setState({ email: json[0] });
127 | this.setState({ isLoading: true })
128 | this.listformating()
129 | })
130 | .catch((error) => console.error(error))
131 | }
132 |
133 | listformating = () => {
134 | const test = {
135 | "email": this.state.email,
136 | "time": moment().add(15, 'm'),
137 | "color": colors[getRndInteger(0, 3)]
138 | }
139 | this.state.data.push(test)
140 | this.setState({ data: this.state.data })
141 | this.setState({ isLoading: false });
142 | this.setObjectValue()
143 | this.getMyObject()
144 | this.setState({ value: this.state.data.length })
145 |
146 | }
147 |
148 | renderItem = ({ item }) => (
149 | this.onPressProps(item.email, item.time)} onLongPress={() => this.OnLongPressEmail(item.email)}>
150 |
151 |
152 |
153 |
157 | {item.email}
158 |
159 | {moment(item.time).format("dddd, MMMM Do YYYY")}
163 |
164 |
165 |
166 | );
167 |
168 | renderSeparator = () => (
169 |
174 | );
175 |
176 |
177 | render() {
178 | return (
179 |
180 |
181 | {
183 | this.RBSheet = ref;
184 | }}
185 | closeOnPressBack={true}
186 | animationType="fade"
187 | closeOnDragDown={true}
188 | openDuration={300}
189 | customStyles={{
190 | container: {
191 | borderTopLeftRadius: 15,
192 | borderTopRightRadius: 15,
193 | height: "30%",
194 | backgroundColor: "#1A1A1F"
195 | }
196 | }}
197 | >
198 |
199 |
200 |
204 |
205 | Oh No !
206 |
207 | Sorry Your Email Has Expired.Swipe The Card To Delete An Email. Each Email Is Valid For 15 Minutes Only
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
219 |
220 |
221 | Hi There ! this.props.navigation.navigate("Setting")} name="setting" color="#a1a1a1" style={{ marginLeft: "20%", textAlign: "center" }} size={24} />
222 |
224 | New Email
225 |
226 |
227 |
228 |
229 |
230 | {this.state.value != 0 ?
231 |
232 | (
236 |
237 |
238 |
239 | )}
240 | backgroundColor={'#1A1A1F'}
241 | itemBackgroundColor={'#1A1A1F'}
242 | ItemSeparatorComponent={this.renderSeparator}
243 | bounces={true}
244 | refreshing={this.state.isLoading}
245 | keyExtractor={(item, index) => 'key' + index}
246 | />
247 | :
248 |
249 |
250 |
251 | No Mails Found
252 |
253 | }
254 |
255 | )
256 | }
257 | }
258 |
259 | const styles = StyleSheet.create({
260 | container: {
261 | flex: 1,
262 | height: Dev_Height,
263 | width: Dev_Width,
264 | backgroundColor: "#1A1A1F"
265 | },
266 | main_email_box_view: {
267 | height: "30%",
268 | width: "100%",
269 | alignItems: "center",
270 | justifyContent: "center"
271 | },
272 | inside_email_box_view: {
273 | height: "75%",
274 | width: "90%",
275 | backgroundColor: "#222228",
276 | borderRadius: 15,
277 | alignItems: "center",
278 | flexDirection: "row",
279 | justifyContent: "center"
280 | },
281 | image_view: {
282 | height: "80%",
283 | width: "40%"
284 | },
285 | new_email_text_and_button_View: {
286 | height: "100%",
287 | width: "50%",
288 | justifyContent: "center",
289 | alignItems: "center"
290 | },
291 | hi_there_text: {
292 | fontSize: 18,
293 | color: "white",
294 | marginLeft: "10%",
295 | textAlign: "center",
296 | },
297 | new_email_button: {
298 | height: "20%",
299 | width: "75%",
300 | backgroundColor: "#657EE4",
301 | marginLeft: "10%",
302 | borderRadius: 10,
303 | marginTop: "8%",
304 | justifyContent: "center",
305 | alignItems: "center"
306 | },
307 | new_email_button_text: {
308 | fontSize: 13,
309 | color: "#FFF"
310 | },
311 | list_main_view: {
312 | height: "70%",
313 | width: "100%",
314 | backgroundColor: "#1A1A1F"
315 | },
316 | delete_button: {
317 | width: 90,
318 | height: 90,
319 | justifyContent: "center",
320 | alignItems: "center"
321 | },
322 | email_touch: {
323 | height: 90,
324 | width: "100%",
325 | alignItems: "center"
326 | },
327 | email_main_view: {
328 | backgroundColor: "#222228",
329 | height: "100%",
330 | width: "93%",
331 | flexDirection: "row",
332 | borderRadius: 10
333 | },
334 | email_container: {
335 | height: "100%",
336 | width: "80%",
337 | justifyContent: "center",
338 | marginLeft: "10%"
339 | },
340 | email_text: {
341 | fontSize: 15,
342 | color: '#FFF'
343 | },
344 | timestamp_text: {
345 | fontSize: 13,
346 | color: "gray",
347 | marginTop: "5%"
348 | },
349 | Intro_Text: {
350 | fontSize: 15,
351 | color: "gray",
352 | marginTop: "15%"
353 | },
354 | main_style_view_swipable: {
355 | height: "80%",
356 | width: "100%",
357 | justifyContent: "center",
358 | alignItems: "center",
359 | flexDirection: "row"
360 | },
361 | main_image_style: {
362 | height: "50%",
363 | width: "30%"
364 | },
365 | text_header_style: {
366 | color: "#F1F1F1",
367 | fontSize: 17,
368 | textAlign: 'center'
369 | },
370 | side_title_style: {
371 | color: "gray",
372 | fontSize: 15,
373 | marginTop: "5%",
374 | textAlign: 'center'
375 | },
376 | secondary_view: {
377 | justifyContent: "center",
378 | alignItems: "center",
379 | height: "100%",
380 | width: "50%"
381 | },
382 | })
--------------------------------------------------------------------------------
/ios/TmpMail.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00E356F31AD99517003FC87E /* TmpMailTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* TmpMailTests.m */; };
11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
14 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
15 | /* End PBXBuildFile section */
16 |
17 | /* Begin PBXContainerItemProxy section */
18 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
19 | isa = PBXContainerItemProxy;
20 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
21 | proxyType = 1;
22 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
23 | remoteInfo = TmpMail;
24 | };
25 | /* End PBXContainerItemProxy section */
26 |
27 | /* Begin PBXFileReference section */
28 | 00E356EE1AD99517003FC87E /* TmpMailTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TmpMailTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
29 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | 00E356F21AD99517003FC87E /* TmpMailTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TmpMailTests.m; sourceTree = ""; };
31 | 13B07F961A680F5B00A75B9A /* TmpMail.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TmpMail.app; sourceTree = BUILT_PRODUCTS_DIR; };
32 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = TmpMail/AppDelegate.h; sourceTree = ""; };
33 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = TmpMail/AppDelegate.m; sourceTree = ""; };
34 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = TmpMail/Images.xcassets; sourceTree = ""; };
35 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = TmpMail/Info.plist; sourceTree = ""; };
36 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = TmpMail/main.m; sourceTree = ""; };
37 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = TmpMail/LaunchScreen.storyboard; sourceTree = ""; };
38 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
39 | /* End PBXFileReference section */
40 |
41 | /* Begin PBXFrameworksBuildPhase section */
42 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
43 | isa = PBXFrameworksBuildPhase;
44 | buildActionMask = 2147483647;
45 | files = (
46 | );
47 | runOnlyForDeploymentPostprocessing = 0;
48 | };
49 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
50 | isa = PBXFrameworksBuildPhase;
51 | buildActionMask = 2147483647;
52 | files = (
53 | );
54 | runOnlyForDeploymentPostprocessing = 0;
55 | };
56 | /* End PBXFrameworksBuildPhase section */
57 |
58 | /* Begin PBXGroup section */
59 | 00E356EF1AD99517003FC87E /* TmpMailTests */ = {
60 | isa = PBXGroup;
61 | children = (
62 | 00E356F21AD99517003FC87E /* TmpMailTests.m */,
63 | 00E356F01AD99517003FC87E /* Supporting Files */,
64 | );
65 | path = TmpMailTests;
66 | sourceTree = "";
67 | };
68 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
69 | isa = PBXGroup;
70 | children = (
71 | 00E356F11AD99517003FC87E /* Info.plist */,
72 | );
73 | name = "Supporting Files";
74 | sourceTree = "";
75 | };
76 | 13B07FAE1A68108700A75B9A /* TmpMail */ = {
77 | isa = PBXGroup;
78 | children = (
79 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
80 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
81 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
82 | 13B07FB61A68108700A75B9A /* Info.plist */,
83 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
84 | 13B07FB71A68108700A75B9A /* main.m */,
85 | );
86 | name = TmpMail;
87 | sourceTree = "";
88 | };
89 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
90 | isa = PBXGroup;
91 | children = (
92 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
93 | );
94 | name = Frameworks;
95 | sourceTree = "";
96 | };
97 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
98 | isa = PBXGroup;
99 | children = (
100 | );
101 | name = Libraries;
102 | sourceTree = "";
103 | };
104 | 83CBB9F61A601CBA00E9B192 = {
105 | isa = PBXGroup;
106 | children = (
107 | 13B07FAE1A68108700A75B9A /* TmpMail */,
108 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
109 | 00E356EF1AD99517003FC87E /* TmpMailTests */,
110 | 83CBBA001A601CBA00E9B192 /* Products */,
111 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
112 | );
113 | indentWidth = 2;
114 | sourceTree = "";
115 | tabWidth = 2;
116 | usesTabs = 0;
117 | };
118 | 83CBBA001A601CBA00E9B192 /* Products */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 13B07F961A680F5B00A75B9A /* TmpMail.app */,
122 | 00E356EE1AD99517003FC87E /* TmpMailTests.xctest */,
123 | );
124 | name = Products;
125 | sourceTree = "";
126 | };
127 | /* End PBXGroup section */
128 |
129 | /* Begin PBXNativeTarget section */
130 | 00E356ED1AD99517003FC87E /* TmpMailTests */ = {
131 | isa = PBXNativeTarget;
132 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "TmpMailTests" */;
133 | buildPhases = (
134 | 00E356EA1AD99517003FC87E /* Sources */,
135 | 00E356EB1AD99517003FC87E /* Frameworks */,
136 | 00E356EC1AD99517003FC87E /* Resources */,
137 | );
138 | buildRules = (
139 | );
140 | dependencies = (
141 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
142 | );
143 | name = TmpMailTests;
144 | productName = TmpMailTests;
145 | productReference = 00E356EE1AD99517003FC87E /* TmpMailTests.xctest */;
146 | productType = "com.apple.product-type.bundle.unit-test";
147 | };
148 | 13B07F861A680F5B00A75B9A /* TmpMail */ = {
149 | isa = PBXNativeTarget;
150 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "TmpMail" */;
151 | buildPhases = (
152 | FD10A7F022414F080027D42C /* Start Packager */,
153 | 13B07F871A680F5B00A75B9A /* Sources */,
154 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
155 | 13B07F8E1A680F5B00A75B9A /* Resources */,
156 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
157 | );
158 | buildRules = (
159 | );
160 | dependencies = (
161 | );
162 | name = TmpMail;
163 | productName = TmpMail;
164 | productReference = 13B07F961A680F5B00A75B9A /* TmpMail.app */;
165 | productType = "com.apple.product-type.application";
166 | };
167 | /* End PBXNativeTarget section */
168 |
169 | /* Begin PBXProject section */
170 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
171 | isa = PBXProject;
172 | attributes = {
173 | LastUpgradeCheck = 1210;
174 | TargetAttributes = {
175 | 00E356ED1AD99517003FC87E = {
176 | CreatedOnToolsVersion = 6.2;
177 | TestTargetID = 13B07F861A680F5B00A75B9A;
178 | };
179 | 13B07F861A680F5B00A75B9A = {
180 | LastSwiftMigration = 1120;
181 | };
182 | };
183 | };
184 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "TmpMail" */;
185 | compatibilityVersion = "Xcode 12.0";
186 | developmentRegion = en;
187 | hasScannedForEncodings = 0;
188 | knownRegions = (
189 | en,
190 | Base,
191 | );
192 | mainGroup = 83CBB9F61A601CBA00E9B192;
193 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
194 | projectDirPath = "";
195 | projectRoot = "";
196 | targets = (
197 | 13B07F861A680F5B00A75B9A /* TmpMail */,
198 | 00E356ED1AD99517003FC87E /* TmpMailTests */,
199 | );
200 | };
201 | /* End PBXProject section */
202 |
203 | /* Begin PBXResourcesBuildPhase section */
204 | 00E356EC1AD99517003FC87E /* Resources */ = {
205 | isa = PBXResourcesBuildPhase;
206 | buildActionMask = 2147483647;
207 | files = (
208 | );
209 | runOnlyForDeploymentPostprocessing = 0;
210 | };
211 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
212 | isa = PBXResourcesBuildPhase;
213 | buildActionMask = 2147483647;
214 | files = (
215 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
216 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | };
220 | /* End PBXResourcesBuildPhase section */
221 |
222 | /* Begin PBXShellScriptBuildPhase section */
223 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
224 | isa = PBXShellScriptBuildPhase;
225 | buildActionMask = 2147483647;
226 | files = (
227 | );
228 | inputPaths = (
229 | );
230 | name = "Bundle React Native code and images";
231 | outputPaths = (
232 | );
233 | runOnlyForDeploymentPostprocessing = 0;
234 | shellPath = /bin/sh;
235 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
236 | };
237 | FD10A7F022414F080027D42C /* Start Packager */ = {
238 | isa = PBXShellScriptBuildPhase;
239 | buildActionMask = 2147483647;
240 | files = (
241 | );
242 | inputFileListPaths = (
243 | );
244 | inputPaths = (
245 | );
246 | name = "Start Packager";
247 | outputFileListPaths = (
248 | );
249 | outputPaths = (
250 | );
251 | runOnlyForDeploymentPostprocessing = 0;
252 | shellPath = /bin/sh;
253 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
254 | showEnvVarsInLog = 0;
255 | };
256 | /* End PBXShellScriptBuildPhase section */
257 |
258 | /* Begin PBXSourcesBuildPhase section */
259 | 00E356EA1AD99517003FC87E /* Sources */ = {
260 | isa = PBXSourcesBuildPhase;
261 | buildActionMask = 2147483647;
262 | files = (
263 | 00E356F31AD99517003FC87E /* TmpMailTests.m in Sources */,
264 | );
265 | runOnlyForDeploymentPostprocessing = 0;
266 | };
267 | 13B07F871A680F5B00A75B9A /* Sources */ = {
268 | isa = PBXSourcesBuildPhase;
269 | buildActionMask = 2147483647;
270 | files = (
271 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
272 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
273 | );
274 | runOnlyForDeploymentPostprocessing = 0;
275 | };
276 | /* End PBXSourcesBuildPhase section */
277 |
278 | /* Begin PBXTargetDependency section */
279 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
280 | isa = PBXTargetDependency;
281 | target = 13B07F861A680F5B00A75B9A /* TmpMail */;
282 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
283 | };
284 | /* End PBXTargetDependency section */
285 |
286 | /* Begin XCBuildConfiguration section */
287 | 00E356F61AD99517003FC87E /* Debug */ = {
288 | isa = XCBuildConfiguration;
289 | buildSettings = {
290 | BUNDLE_LOADER = "$(TEST_HOST)";
291 | GCC_PREPROCESSOR_DEFINITIONS = (
292 | "DEBUG=1",
293 | "$(inherited)",
294 | );
295 | INFOPLIST_FILE = TmpMailTests/Info.plist;
296 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
297 | LD_RUNPATH_SEARCH_PATHS = (
298 | "$(inherited)",
299 | "@executable_path/Frameworks",
300 | "@loader_path/Frameworks",
301 | );
302 | OTHER_LDFLAGS = (
303 | "-ObjC",
304 | "-lc++",
305 | "$(inherited)",
306 | );
307 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
308 | PRODUCT_NAME = "$(TARGET_NAME)";
309 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TmpMail.app/TmpMail";
310 | };
311 | name = Debug;
312 | };
313 | 00E356F71AD99517003FC87E /* Release */ = {
314 | isa = XCBuildConfiguration;
315 | buildSettings = {
316 | BUNDLE_LOADER = "$(TEST_HOST)";
317 | COPY_PHASE_STRIP = NO;
318 | INFOPLIST_FILE = TmpMailTests/Info.plist;
319 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
320 | LD_RUNPATH_SEARCH_PATHS = (
321 | "$(inherited)",
322 | "@executable_path/Frameworks",
323 | "@loader_path/Frameworks",
324 | );
325 | OTHER_LDFLAGS = (
326 | "-ObjC",
327 | "-lc++",
328 | "$(inherited)",
329 | );
330 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
331 | PRODUCT_NAME = "$(TARGET_NAME)";
332 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TmpMail.app/TmpMail";
333 | };
334 | name = Release;
335 | };
336 | 13B07F941A680F5B00A75B9A /* Debug */ = {
337 | isa = XCBuildConfiguration;
338 | buildSettings = {
339 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
340 | CLANG_ENABLE_MODULES = YES;
341 | CURRENT_PROJECT_VERSION = 1;
342 | ENABLE_BITCODE = NO;
343 | INFOPLIST_FILE = TmpMail/Info.plist;
344 | LD_RUNPATH_SEARCH_PATHS = (
345 | "$(inherited)",
346 | "@executable_path/Frameworks",
347 | );
348 | OTHER_LDFLAGS = (
349 | "$(inherited)",
350 | "-ObjC",
351 | "-lc++",
352 | );
353 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
354 | PRODUCT_NAME = TmpMail;
355 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
356 | SWIFT_VERSION = 5.0;
357 | VERSIONING_SYSTEM = "apple-generic";
358 | };
359 | name = Debug;
360 | };
361 | 13B07F951A680F5B00A75B9A /* Release */ = {
362 | isa = XCBuildConfiguration;
363 | buildSettings = {
364 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
365 | CLANG_ENABLE_MODULES = YES;
366 | CURRENT_PROJECT_VERSION = 1;
367 | INFOPLIST_FILE = TmpMail/Info.plist;
368 | LD_RUNPATH_SEARCH_PATHS = (
369 | "$(inherited)",
370 | "@executable_path/Frameworks",
371 | );
372 | OTHER_LDFLAGS = (
373 | "$(inherited)",
374 | "-ObjC",
375 | "-lc++",
376 | );
377 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
378 | PRODUCT_NAME = TmpMail;
379 | SWIFT_VERSION = 5.0;
380 | VERSIONING_SYSTEM = "apple-generic";
381 | };
382 | name = Release;
383 | };
384 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
385 | isa = XCBuildConfiguration;
386 | buildSettings = {
387 | ALWAYS_SEARCH_USER_PATHS = NO;
388 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
389 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
390 | CLANG_CXX_LIBRARY = "libc++";
391 | CLANG_ENABLE_MODULES = YES;
392 | CLANG_ENABLE_OBJC_ARC = YES;
393 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
394 | CLANG_WARN_BOOL_CONVERSION = YES;
395 | CLANG_WARN_COMMA = YES;
396 | CLANG_WARN_CONSTANT_CONVERSION = YES;
397 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
398 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
399 | CLANG_WARN_EMPTY_BODY = YES;
400 | CLANG_WARN_ENUM_CONVERSION = YES;
401 | CLANG_WARN_INFINITE_RECURSION = YES;
402 | CLANG_WARN_INT_CONVERSION = YES;
403 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
404 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
405 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
406 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
407 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
408 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
409 | CLANG_WARN_STRICT_PROTOTYPES = YES;
410 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
411 | CLANG_WARN_UNREACHABLE_CODE = YES;
412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
414 | COPY_PHASE_STRIP = NO;
415 | ENABLE_STRICT_OBJC_MSGSEND = YES;
416 | ENABLE_TESTABILITY = YES;
417 | GCC_C_LANGUAGE_STANDARD = gnu99;
418 | GCC_DYNAMIC_NO_PIC = NO;
419 | GCC_NO_COMMON_BLOCKS = YES;
420 | GCC_OPTIMIZATION_LEVEL = 0;
421 | GCC_PREPROCESSOR_DEFINITIONS = (
422 | "DEBUG=1",
423 | "$(inherited)",
424 | );
425 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
426 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
427 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
428 | GCC_WARN_UNDECLARED_SELECTOR = YES;
429 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
430 | GCC_WARN_UNUSED_FUNCTION = YES;
431 | GCC_WARN_UNUSED_VARIABLE = YES;
432 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
433 | LD_RUNPATH_SEARCH_PATHS = (
434 | /usr/lib/swift,
435 | "$(inherited)",
436 | );
437 | LIBRARY_SEARCH_PATHS = (
438 | "\"$(SDKROOT)/usr/lib/swift\"",
439 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
440 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
441 | "\"$(inherited)\"",
442 | );
443 | MTL_ENABLE_DEBUG_INFO = YES;
444 | ONLY_ACTIVE_ARCH = YES;
445 | SDKROOT = iphoneos;
446 | };
447 | name = Debug;
448 | };
449 | 83CBBA211A601CBA00E9B192 /* Release */ = {
450 | isa = XCBuildConfiguration;
451 | buildSettings = {
452 | ALWAYS_SEARCH_USER_PATHS = NO;
453 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
454 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
455 | CLANG_CXX_LIBRARY = "libc++";
456 | CLANG_ENABLE_MODULES = YES;
457 | CLANG_ENABLE_OBJC_ARC = YES;
458 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
459 | CLANG_WARN_BOOL_CONVERSION = YES;
460 | CLANG_WARN_COMMA = YES;
461 | CLANG_WARN_CONSTANT_CONVERSION = YES;
462 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
463 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
464 | CLANG_WARN_EMPTY_BODY = YES;
465 | CLANG_WARN_ENUM_CONVERSION = YES;
466 | CLANG_WARN_INFINITE_RECURSION = YES;
467 | CLANG_WARN_INT_CONVERSION = YES;
468 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
469 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
470 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
471 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
472 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
473 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
474 | CLANG_WARN_STRICT_PROTOTYPES = YES;
475 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
476 | CLANG_WARN_UNREACHABLE_CODE = YES;
477 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
478 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
479 | COPY_PHASE_STRIP = YES;
480 | ENABLE_NS_ASSERTIONS = NO;
481 | ENABLE_STRICT_OBJC_MSGSEND = YES;
482 | GCC_C_LANGUAGE_STANDARD = gnu99;
483 | GCC_NO_COMMON_BLOCKS = YES;
484 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
485 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
486 | GCC_WARN_UNDECLARED_SELECTOR = YES;
487 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
488 | GCC_WARN_UNUSED_FUNCTION = YES;
489 | GCC_WARN_UNUSED_VARIABLE = YES;
490 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
491 | LD_RUNPATH_SEARCH_PATHS = (
492 | /usr/lib/swift,
493 | "$(inherited)",
494 | );
495 | LIBRARY_SEARCH_PATHS = (
496 | "\"$(SDKROOT)/usr/lib/swift\"",
497 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
498 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
499 | "\"$(inherited)\"",
500 | );
501 | MTL_ENABLE_DEBUG_INFO = NO;
502 | SDKROOT = iphoneos;
503 | VALIDATE_PRODUCT = YES;
504 | };
505 | name = Release;
506 | };
507 | /* End XCBuildConfiguration section */
508 |
509 | /* Begin XCConfigurationList section */
510 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "TmpMailTests" */ = {
511 | isa = XCConfigurationList;
512 | buildConfigurations = (
513 | 00E356F61AD99517003FC87E /* Debug */,
514 | 00E356F71AD99517003FC87E /* Release */,
515 | );
516 | defaultConfigurationIsVisible = 0;
517 | defaultConfigurationName = Release;
518 | };
519 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "TmpMail" */ = {
520 | isa = XCConfigurationList;
521 | buildConfigurations = (
522 | 13B07F941A680F5B00A75B9A /* Debug */,
523 | 13B07F951A680F5B00A75B9A /* Release */,
524 | );
525 | defaultConfigurationIsVisible = 0;
526 | defaultConfigurationName = Release;
527 | };
528 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "TmpMail" */ = {
529 | isa = XCConfigurationList;
530 | buildConfigurations = (
531 | 83CBBA201A601CBA00E9B192 /* Debug */,
532 | 83CBBA211A601CBA00E9B192 /* Release */,
533 | );
534 | defaultConfigurationIsVisible = 0;
535 | defaultConfigurationName = Release;
536 | };
537 | /* End XCConfigurationList section */
538 | };
539 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
540 | }
541 |
--------------------------------------------------------------------------------