Commit 7cdab7fd authored by Martin Santangelo's avatar Martin Santangelo

(feat) disable nsfw values for ios

No related merge requests found
import { AsyncStorage } from "react-native";
import { AsyncStorage, Platform } from "react-native";
class NsfwService {
constructor(target) {
......@@ -13,6 +13,7 @@ class NsfwService {
* @returns {Promise<number[]>}
*/
async get() {
if (Platform.OS === 'ios') return [];
try {
const value = await AsyncStorage.getItem(this._getStorageKey());
return value ? JSON.parse(value) : [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment