Merge branch 'release'

This commit is contained in:
Zhiyuan Zheng 2022-06-06 22:50:23 +02:00
commit 23bc9aa5f3
2 changed files with 3 additions and 4 deletions

View File

@ -25,10 +25,9 @@ jobs:
distribution: 'zulu'
java-version: '11'
- name: -- Step 4 -- Use Expo action
uses: expo/expo-github-action@v6
uses: expo/expo-github-action@v7
with:
expo-version: 5.x
username: ${{ secrets.EXPO_USERNAME }}
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: -- Step 5 -- Install node dependencies
run: yarn install

View File

@ -78,7 +78,6 @@ const pushUseConnect = ({ t, instances }: Params) => {
useEffect(() => {
const appStateListener = AppState.addEventListener('change', state => {
console.log('changing state to', state)
if (expoToken && pushEnabled.length && state === 'active') {
Notifications.getBadgeCountAsync().then(count => {
if (count > 0) {
@ -96,6 +95,7 @@ const pushUseConnect = ({ t, instances }: Params) => {
return useEffect(() => {
if (expoToken && pushEnabled.length) {
Notifications.setBadgeCountAsync(0)
connect()
}
}, [expoToken, pushEnabled.length])