diff --git a/squarenotsquare/Launcher.js b/squarenotsquare/SquareNotSquare.js
similarity index 100%
rename from squarenotsquare/Launcher.js
rename to squarenotsquare/SquareNotSquare.js
diff --git a/squarenotsquare/__tests__/DB-test.js b/squarenotsquare/__tests__/DB-test.js
index 09c6dbe..a34b916 100644
--- a/squarenotsquare/__tests__/DB-test.js
+++ b/squarenotsquare/__tests__/DB-test.js
@@ -1,5 +1,5 @@
-import { initDB } from '../src/realm/dbInit';
-import dbAPI from '../src/realm/dbAPI';
+import { initDB } from '../src/realm/DbInit';
+import DbAPI from '../src/realm/DbAPI';
test('Realm DB inits', () => {
return initDB('negTest', 'negTest')
@@ -32,7 +32,7 @@ test('Realm DB returns null after exceptions', () => {
test('dbAPI calls system repo getAllSystemValues()', () => {
return initDB('isNull', 'isNull')
.then( () => {
- let returned = dbAPI.getAllSystemValues();
+ let returned = DbAPI.getAllSystemValues();
expect(returned).toEqual({});
});
});
@@ -40,7 +40,7 @@ test('dbAPI calls system repo getAllSystemValues()', () => {
test('dbAPI calls system repo createSystemValue()', () => {
return initDB('isNull', 'isNull')
.then( () => {
- let returned = dbAPI.createSystemValue();
+ let returned = DbAPI.createSystemValue();
expect(returned).toEqual(true);
});
});
@@ -48,7 +48,7 @@ test('dbAPI calls system repo createSystemValue()', () => {
test('dbAPI calls system repo deleteSystemValue()', () => {
return initDB('isNull', 'isNull')
.then( () => {
- let returned = dbAPI.deleteSystemValue();
+ let returned = DbAPI.deleteSystemValue();
expect(returned).toEqual(true);
});
});
@@ -56,7 +56,7 @@ test('dbAPI calls system repo deleteSystemValue()', () => {
test('dbAPI calls system repo getSystemValue()', () => {
return initDB('isNull', 'isNull')
.then( () => {
- let returned = dbAPI.getSystemValue('notakey');
+ let returned = DbAPI.getSystemValue('notakey');
expect(returned.id).toEqual(null);
});
});
\ No newline at end of file
diff --git a/squarenotsquare/index.js b/squarenotsquare/index.js
index 16b4988..a5e1ef4 100644
--- a/squarenotsquare/index.js
+++ b/squarenotsquare/index.js
@@ -1,12 +1,12 @@
import React from 'react';
import {AppRegistry} from 'react-native';
import {name as appName} from './app.json';
-import SquareNotSquare from './Launcher';
-import configStore from './src/redux/CreateStore';
+import SquareNotSquare from './SquareNotSquare';
+import ConfigStore from './src/redux/CreateStore';
import { appInit } from './src/redux/actions/SystemActions';
-const squareStore = configStore;
-squareStore.dispatch(appInit());
+const ConfigStore = configStore;
+ConfigStore.dispatch(appInit());
const ProppedContainer = () => {
return ;
diff --git a/squarenotsquare/src/navigation/SquareNav.js b/squarenotsquare/src/navigation/SquareNav.js
index 9030f3a..f23c207 100644
--- a/squarenotsquare/src/navigation/SquareNav.js
+++ b/squarenotsquare/src/navigation/SquareNav.js
@@ -1,8 +1,8 @@
import { createRef } from "react";
-export const squareRef = createRef();
+export const SquareRef = createRef();
export function navigate(name, params) {
- squareRef.current?.navigate(name, params);
+ SquareRef.current?.navigate(name, params);
return true;
}
\ No newline at end of file
diff --git a/squarenotsquare/src/navigation/SquareStack.js b/squarenotsquare/src/navigation/SquareStack.js
index 28bce3f..0152129 100644
--- a/squarenotsquare/src/navigation/SquareStack.js
+++ b/squarenotsquare/src/navigation/SquareStack.js
@@ -1,7 +1,7 @@
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
-import {squareRef} from './SquareNav';
+import {SquareRef} from './SquareNav';
import Home from '../screens/Home';
import Game from '../screens/Game';
@@ -15,7 +15,7 @@ function SquareStack() {
let noHeader = {headerShown: false};
return (
-
+
{
- await dbAPI.initDB();
+ await DbAPI.initDB();
dispatch(onInit());
}
}