Parcourir la source

[RN] Fix React warnings

master
Lyubo Marinov il y a 8 ans
Parent
révision
70d064cfa2
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6
    2
      react/features/toolbox/components/Toolbox.native.js

+ 6
- 2
react/features/toolbox/components/Toolbox.native.js Voir le fichier

@@ -232,7 +232,9 @@ class Toolbox extends Component {
232 232
         /* eslint-disable react/jsx-handler-names */
233 233
 
234 234
         return (
235
-            <View style = { styles.primaryToolbar }>
235
+            <View
236
+                key = 'primaryToolbar'
237
+                style = { styles.primaryToolbar }>
236 238
                 <ToolbarButton
237 239
                     iconName = { audioButtonStyles.iconName }
238 240
                     iconStyle = { audioButtonStyles.iconStyle }
@@ -275,7 +277,9 @@ class Toolbox extends Component {
275 277
         /* eslint-disable react/jsx-curly-spacing,react/jsx-handler-names */
276 278
 
277 279
         return (
278
-            <View style = { styles.secondaryToolbar }>
280
+            <View
281
+                key = 'secondaryToolbar'
282
+                style = { styles.secondaryToolbar }>
279 283
                 <ToolbarButton
280 284
                     disabled = { audioOnly || videoMuted }
281 285
                     iconName = 'switch-camera'

Chargement…
Annuler
Enregistrer