修复 android 提醒红点问题

This commit is contained in:
mx1700 2019-08-18 22:02:00 +08:00
parent 56093ba57f
commit 57f3be658f
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,6 @@
android:allowBackup="true" android:allowBackup="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:launchMode="singleTask"
android:networkSecurityConfig="@xml/network_security_config" android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<activity <activity
@ -24,6 +23,7 @@
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="@string/app_name" android:label="@string/app_name"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"> android:windowSoftInputMode="adjustResize">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

View file

@ -160,7 +160,7 @@ export default class NotificationPage extends Component {
} }
Navigation.mergeOptions(this.props.componentId, { Navigation.mergeOptions(this.props.componentId, {
bottomTab: { bottomTab: {
badge: msgCount > 0 ? msgCount.toString() : null, badge: msgCount > 0 ? msgCount.toString() : (Platform.OS === 'ios' ? null : ''),
} }
}); });
} }