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

fix: blank screen issue and larivaar Font/ alignment #110

Merged
merged 9 commits into from
Aug 4, 2022
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
36 changes: 24 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
{
"extends": [
"airbnb",
"prettier",
"prettier/react",
"plugin:prettier/recommended",
"eslint-config-prettier"
"extends": [
"airbnb",
"prettier",
"plugin:prettier/recommended",
"eslint-config-prettier"
],
"parser": "babel-eslint",
"rules": {
"import/no-unresolved": "off",
"react/prop-types":"off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"parser": "babel-eslint",
"rules": {
"import/no-unresolved": "off"
},
"plugins": [
"prettier"
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100
}
]
},
"plugins": ["prettier"]
}
9 changes: 5 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
}
}
"git.ignoreLimitWarning": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnPaste": true
}
18 changes: 9 additions & 9 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ export default class App extends React.Component {
BackHandler.addEventListener("hardwareBackPress", this.handleBackPress);
}

notificationHandler() {
const firebaseNotifaction = new FirebaseNotification()
firebaseNotifaction.checkPermission();
firebaseNotifaction.backgroundMessageHandler();
firebaseNotifaction.foregroundMessage();
firebaseNotifaction.handleNotification();
}

componentWillUnmount() {
BackHandler.removeEventListener("hardwareBackPress", this.handleBackPress);
}
Expand All @@ -50,6 +42,14 @@ export default class App extends React.Component {
return true;
};

notificationHandler=()=> {
const firebaseNotifaction = new FirebaseNotification()
firebaseNotifaction.checkPermission();
firebaseNotifaction.backgroundMessageHandler();
firebaseNotifaction.foregroundMessage();
firebaseNotifaction.handleNotification();
}

render() {
return (
<Provider store={store}>
Expand All @@ -74,4 +74,4 @@ export default class App extends React.Component {
);
}
}
AppRegistry.registerHeadlessTask('RNFirebaseMessagingService', () => notificationHandler);
AppRegistry.registerHeadlessTask('RNFirebaseMessagingService', () => this.notificationHandler);
4 changes: 2 additions & 2 deletions ios/SundarGutka.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = SundarGutka/SundarGutka.entitlements;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 9;
DEVELOPMENT_TEAM = B3W82WVBU9;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = SundarGutka/Info.plist;
Expand Down Expand Up @@ -637,7 +637,7 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = SundarGutka/SundarGutka.entitlements;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 9;
DEVELOPMENT_TEAM = B3W82WVBU9;
INFOPLIST_FILE = SundarGutka/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
4 changes: 2 additions & 2 deletions ios/SundarGutka/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
Expand All @@ -24,6 +22,8 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
Loading