Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java exception and assets load fix #146

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
Expand Down
3 changes: 2 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ android.enableAapt2=true
android.useDeprecatedNdk=true

android.useAndroidX=true
android.enableJetifier=true
android.enableJetifier=true
org.gradle.jvmargs=--add-opens java.base/java.lang=ALL-UNNAMED
72 changes: 36 additions & 36 deletions app/components/ForumBox/styles.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
import { StyleSheet, Dimensions } from "react-native";
import { StyleSheet, Dimensions, Platform } from "react-native";

let deviceWidth = Dimensions.get("window").width;
let deviceHeight = Dimensions.get("window").height;

export default StyleSheet.create({
QuestionStyle : {
width : "90%",
borderRadius: 10,
borderWidth: 1,
backgroundColor: Platform.OS === "ios" ? "#fff" : null,
borderColor: "#b8b8b8",
shadowColor: Platform.OS === "ios" ? "#000000" : "#000000",
shadowOffset: {
width: Platform.OS === "ios" ? 0 : 0,
height: Platform.OS === "ios" ? 2 : 2,
},
shadowOpacity: Platform.OS === "ios" ? 0.9 : 0.8,
shadowRadius: Platform.OS === "ios" ? 3 : 40,
elevation: Platform.OS === "ios" ? 3 : 4,
alignSelf: "center"
},
nameHeadlineStyle : {
width: "101%",
height : 25,
backgroundColor: "#79AEE0",
borderRadius: 7,
alignSelf: "center",
justifyContent: "center",
top: 0
},
AnswerButtonStyle : {
width: 65,
height: 23,
backgroundColor: "#9cd683",
borderRadius: 5,
alignSelf: "flex-end",
bottom: 5,
right: 5,
justifyContent: "center",
},
QuestionStyle: {
width: "90%",
borderRadius: 10,
borderWidth: 1,
backgroundColor: Platform.OS === "ios" ? "#fff" : null,
borderColor: "#b8b8b8",
shadowColor: Platform.OS === "ios" ? "#000000" : "#000000",
shadowOffset: {
width: Platform.OS === "ios" ? 0 : 0,
height: Platform.OS === "ios" ? 2 : 2,
},
shadowOpacity: Platform.OS === "ios" ? 0.9 : 0.8,
shadowRadius: Platform.OS === "ios" ? 3 : 40,
elevation: Platform.OS === "ios" ? 3 : 4,
alignSelf: "center"
},
nameHeadlineStyle: {
width: "101%",
height: 25,
backgroundColor: "#79AEE0",
borderRadius: 7,
alignSelf: "center",
justifyContent: "center",
top: 0
},
AnswerButtonStyle: {
width: 65,
height: 23,
backgroundColor: "#9cd683",
borderRadius: 5,
alignSelf: "flex-end",
bottom: 5,
right: 5,
justifyContent: "center",
},
});
18 changes: 11 additions & 7 deletions config/config.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ var config = {
projectId: "",
storageBucket: "",
messagingSenderId: ""
};
};
try {
firebase.initializeApp(config);
} catch (error) {
console.log(error)
}

var MAP_API_KEY = "";
var MAP_API_KEY = "";

export const f = firebase;
export const database = firebase.database();
export const auth = firebase.auth();
export const storage = firebase.storage();
export const MAP_API = MAP_API_KEY;
export const f = firebase;
export const database = firebase.database();
export const auth = firebase.auth();
export const storage = firebase.storage();
export const MAP_API = MAP_API_KEY;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"test": "jest --detectOpenHandles -u"
},
"dependencies": {
"@react-native-community/toolbar-android": "^0.2.1",
"email-validator": "^2.0.4",
"firebase": "^7.2.2",
"react": "16.12.0",
Expand Down