-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Closed
Labels
BugHelp Wanted
Issues ideal for external contributors.Issues ideal for external contributors.JavaScriptResolution: LockedThis issue was locked by the bot.This issue was locked by the bot.

Description
Description
Hot reloading doesn't work on functional components. The "hot loading" message appears, but the changes don't show up.
Reproduction
react-native init test
cd test
Open index.android.js and replace :
export default class test extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit index.android.js
</Text>
<Text style={styles.instructions}>
Double tap R on your keyboard to reload,{'\n'}
Shake or press menu button for dev menu
</Text>
</View>
);
}
}
with
const test = () => (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit index.android.js
</Text>
<Text style={styles.instructions}>
Double tap R on your keyboard to reload,{'\n'}
Shake or press menu button for dev menu
</Text>
</View>
);
Enable hot reloading, reload the app and try to make changes.
Additional Information
- React Native version: 0.37.0
- Platform: Android (didn't try ios)
- Operating System: Windows
hopglascock, YuukanOO, vitorbal, vkartaviy, tlvince and 59 moretrimbresa, klosowsk and phsantiago
Metadata
Metadata
Assignees
Labels
BugHelp Wanted
Issues ideal for external contributors.Issues ideal for external contributors.JavaScriptResolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
