Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
188
Issues
188
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Compare Revisions
63fa2dec6c297abe4a548519f6f758932113fc51...ef0bcee5aa18fd43bba09b1c81be8d6990b3dd3a
Source
ef0bcee5aa18fd43bba09b1c81be8d6990b3dd3a
Select Git revision
...
Target
63fa2dec6c297abe4a548519f6f758932113fc51
Select Git revision
Compare
Commits (3)
(feat) remove nsfw toggles from ios
· 4055a233
Martin Santangelo
authored
4 hours ago
4055a233
(feat) disable nsfw values for ios
· 7cdab7fd
Martin Santangelo
authored
4 hours ago
7cdab7fd
Merge branch 'v3.6.0'
· ef0bcee5
Martin Santangelo
authored
3 hours ago
ef0bcee5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
CapturePosterFlags.js
src/capture/CapturePosterFlags.js
+2
-2
nsfw.service.js
src/common/services/nsfw.service.js
+2
-0
NewsfeedFilters.js
src/discovery/NewsfeedFilters.js
+2
-1
No files found.
src/capture/CapturePosterFlags.js
View file @
ef0bcee5
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
}
...
...
This diff is collapsed.
Click to expand it.
src/common/services/nsfw.service.js
View file @
ef0bcee5
import
AsyncStorage
from
'@react-native-community/async-storage'
;
import
{
Platform
}
from
"react-native"
;
class
NsfwService
{
constructor
(
target
)
{
...
...
@@ -13,6 +14,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
)
:
[];
...
...
This diff is collapsed.
Click to expand it.
src/discovery/NewsfeedFilters.js
View file @
ef0bcee5
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.