Skip to content

Commit

Permalink
Reproduce bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieme van Veen committed Jul 9, 2018
1 parent 99bd6e9 commit 981e953
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions App.js
Expand Up @@ -16,14 +16,16 @@ const instructions = Platform.select({
'Shake or press menu button for dev menu',
});

type Props = {};
type Props = {
foo: String
};
export default class App extends Component<Props> {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>Welcome to React Native!</Text>
<Text style={styles.instructions}>To get started, edit App.js</Text>
<Text style={styles.instructions}>{instructions}</Text>
<Text style={styles.instructions}>The next line should read "qux", if it reads "bar" the view was not re-rendered after `rootView.appProperties` was changed..</Text>
<Text style={styles.welcome}>"{this.props.foo}"</Text>
</View>
);
}
Expand Down
Expand Up @@ -20,8 +20,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"AppPropertiesNoReRenderWhileBridgeIsLoading"
initialProperties:nil
initialProperties:@{@"foo" : @"bar"}
launchOptions:launchOptions];

rootView.appProperties = @{@"foo" : @"qux"};

rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
Expand Down

2 comments on commit 981e953

@dalvarez82
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@teameh
Copy link
Owner

@teameh teameh commented on 981e953 Apr 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is in these archives?

Please sign in to comment.