Commit 4055a233 authored by Martin Santangelo's avatar Martin Santangelo

(feat) remove nsfw toggles from ios

No related merge requests found
import React, { Component } from 'react';
import { Text, TextInput, View, StyleSheet } from 'react-native';
import { Text, TextInput, View, StyleSheet, Platform } from 'react-native';
import { inject, observer } from 'mobx-react/native';
import FaIcon from 'react-native-vector-icons/FontAwesome';
import IonIcon from 'react-native-vector-icons/Ionicons';
......@@ -326,7 +326,7 @@ export default class CapturePosterFlags extends Component {
}
renderNsfw() {
if (GOOGLE_PLAY_STORE) return null;
if (GOOGLE_PLAY_STORE || Platform.OS === 'ios') return null;
return (
<NsfwToggle
containerStyle={styles.cell}
......
......@@ -9,6 +9,7 @@ import {
LayoutAnimation,
TouchableHighlight,
StyleSheet,
Platform,
} from 'react-native';
import {
......@@ -172,7 +173,7 @@ export default class NewsfeedFilters extends Component {
</View>
</TouchableHighlight>
</View>
{!GOOGLE_PLAY_STORE && <View style={[CS.padding, CS.paddingLeft2x, CS.paddingRight2x]}>
{(!GOOGLE_PLAY_STORE && Platform.OS !== 'ios') && <View style={[CS.padding, CS.paddingLeft2x, CS.paddingRight2x]}>
<NsfwToggle
hideLabel={true}
value={store.nsfw}
......
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