Dong Lam Trien

Dong Lam Trien

  • 729
  • 968
  • 134.2k

Visual Studio Code fails to update strings when running virtual machin

Feb 27 2024 6:36 AM

Visual Studio Code fails to update strings when running virtual machine.

I have installed the Android Studio virtual machine and Visual Studio Code when running the virtual machine to export the string normally, but when I edit the string it does not update again, I have to restart the machine to update the string, how can I fix this error? Here is my simple code example: App.js

import React from 'react'
import { StyleSheet, Text, View } from 'react-native'

 const App = () => {
  return (
    <View style={styles.container}>
      <View style={styles.top}>
      <Text style={styles.topText}>Top Left</Text> //I edited this thread ???
      </View>      
    </View>
  )
}

export default App

const styles = StyleSheet.create({
  container: {
    
  },
  top: {
    marginTop : 80,
    marginHorizontal : 40,    
    backgroundColor : 'pink',    
    paddingVertical : 20,
    paddingHorizontal : 20,
    borderWidth : 1,
    borderColor : 'red'
  },
  topText: {
    fontSize : 20,
    color : 'blue',
    fontWeight : 'bold'

  }
})

 


Answers (2)