-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Don't reload app when switching away & returning
Refactor api so that logic to start server and wait for it to be ready is all in api methods, rather than in AppLoading component
- Loading branch information
1 parent
8029c38
commit 0974a83
Showing
19 changed files
with
684 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* eslint-env jest/globals */ | ||
const mockedRNFS = { | ||
unlink: jest.fn() | ||
}; | ||
|
||
Object.defineProperty(mockedRNFS, "ExternalDirectoryPath", { | ||
get: jest.fn(() => "__ExternalDirectoryPath__") | ||
}); | ||
|
||
Object.defineProperty(mockedRNFS, "DocumentDirectoryPath", { | ||
get: jest.fn(() => "__DocumentDirectoryPath__") | ||
}); | ||
|
||
module.exports = mockedRNFS; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
module.exports = { | ||
// @flow | ||
|
||
/*:: | ||
type ConstantsType = {| | ||
STARTING: "STARTING", | ||
LISTENING: "LISTENING", | ||
CLOSING: "CLOSING", | ||
CLOSED: "CLOSED", | ||
ERROR: "ERROR" | ||
ERROR: "ERROR", | ||
TIMEOUT: "TIMEOUT" | ||
|} | ||
*/ | ||
|
||
const Constants /*: ConstantsType */ = { | ||
STARTING: "STARTING", | ||
LISTENING: "LISTENING", | ||
CLOSING: "CLOSING", | ||
CLOSED: "CLOSED", | ||
ERROR: "ERROR", | ||
TIMEOUT: "TIMEOUT" | ||
}; | ||
|
||
module.exports = Constants; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.