React native 通知是否依赖于React native?
我有一些小的本地代码来呈现通知,如下所示:React native 通知是否依赖于React native?,react-native,React Native,我有一些小的本地代码来呈现通知,如下所示: notification.map((notification, index) => ( <TouchableWithoutFeedback key={index}> <Text style={
notification.map((notification, index) => (
<TouchableWithoutFeedback key={index}>
<Text
style={
notification.isRead === true
? styles.isRead
: styles.isNotRead
}>
{notification.title}
</Text>
...
</TouchableWithoutFeedback>
notification.map((通知,索引)=>(
{notification.title}
...
如果
notification.isRead===false,我如何计数并将结果发送到另一个屏幕?是否要单击通知转到另一个屏幕?因此您的要求是“在导航到下一个屏幕之前,您要计算false的总数”?是的。这是我的要求@Abdul Basit