Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-native doesn't reload ios application in simulator #11303

Closed
cicibobo opened this issue Dec 5, 2016 · 3 comments
Closed

React-native doesn't reload ios application in simulator #11303

cicibobo opened this issue Dec 5, 2016 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@cicibobo
Copy link

cicibobo commented Dec 5, 2016

i have issue with reloading app,

react-native-cli: 1.2.0
react-native: 0.37.0
watchman: 4.7.0

index.ios.js file.

import React from 'react';
import ReactNative, {View,Text} from 'react-native';
import Header  from './src/components/header';

const App = () => {
    return (
        <View>
            <Header headerText={'Products '}/>
            <Text>Test</Text>
        </View>
    );
};

ReactNative.AppRegistry.registerComponent('ditrack', ()=> App);

then run command react-native run-ios. App simulator loaded but don't update any changes in code for ex.

<Text>Test</Text> to <Text> OTHER Test</Text>

I already reviewed several issues in stackoverflow and github but it did't helped me

@rockink
Copy link

rockink commented Dec 6, 2016

Not exactly sure about ios, but in android they have reload option, which is the key 'r' or 'rr'. Doing that would update the render in the screen. I suspect there should be similar key in ios too!

@keeleycarrigan
Copy link

In the iOS simulator you can set it to auto reload when changes are made by hitting command+D and choosing "Enable Live Reload", but you can also manually reload with command+R.

@christopherdro
Copy link
Contributor

Enable live reload is an option on both platform in dev mode. You can access it through the developer menu which is triggered by a shake gesture.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants