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
import createSensitiveStorage from 'redux-persist-sensitive-storage'; | |
import AsyncStorage from '@react-native-community/async-storage'; | |
class App extends React.Component { | |
/** | |
* Migrate from async storage to sensitive storage. | |
* | |
* @param {*} sensitiveStorage | |
*/ |
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
/* | |
* Sign into the Trakt service | |
* | |
* @param string clientId | |
* @param string clientSecret | |
* @return promise | |
*/ | |
trakt: function(clientId, clientSecret) { | |
var deferred = $q.defer(); | |
if(window.cordova) { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |