mirror of
https://github.com/tooot-app/app
synced 2025-03-13 01:50:08 +01:00
Some Android phones do not have StoreReview?
This commit is contained in:
parent
5d615174cb
commit
4b3b222582
@ -64,8 +64,8 @@ const SettingsTooot: React.FC = () => {
|
||||
iconBack='ChevronRight'
|
||||
onPress={() => {
|
||||
analytics('settings_review_press')
|
||||
StoreReview.isAvailableAsync().then(() =>
|
||||
StoreReview.requestReview()
|
||||
StoreReview?.isAvailableAsync().then(() =>
|
||||
StoreReview?.requestReview()
|
||||
)
|
||||
}}
|
||||
/>
|
||||
|
@ -41,7 +41,9 @@ const contextsSlice = createSlice({
|
||||
if (Updates.releaseChannel.includes('release')) {
|
||||
state.storeReview.current = state.storeReview.current + action.payload
|
||||
if (state.storeReview.current === state.storeReview.context) {
|
||||
StoreReview.isAvailableAsync().then(() => StoreReview.requestReview())
|
||||
StoreReview?.isAvailableAsync().then(() =>
|
||||
StoreReview.requestReview()
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user