-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace new app template with new app screen (#24805)
Summary: This replaces the "new app screen" in the template with the new design from react-native-community/discussions-and-proposals#122 This uses components that are shipped as part of the `react-native` module, but not necessarily as proper components exported by the main `react-native` module. To use these, we use absolute imports to those components. Related to #24760 [General] [Changed] - Updated new app template design 💖 Pull Request resolved: #24805 Differential Revision: D15334459 Pulled By: cpojer fbshipit-source-id: d0b67d08f936eeabd9e93d4e0ff78302b4d6429f
- Loading branch information
1 parent
e4aff42
commit fe88e9e
Showing
5 changed files
with
201 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
|
||
import React from 'react'; | ||
import {Platform, StyleSheet, Text} from 'react-native'; | ||
|
||
const styles = StyleSheet.create({ | ||
highlight: { | ||
fontWeight: '700', | ||
}, | ||
}); | ||
|
||
const DebugInstructions = Platform.select({ | ||
ios: () => ( | ||
<Text> | ||
Press <Text style={styles.highlight}>Cmd+D</Text> in the simulator or{' '} | ||
<Text style={styles.highlight}>Shake</Text> your device to open the React | ||
Native debug menu. | ||
</Text> | ||
), | ||
default: () => ( | ||
<Text> | ||
Press <Text style={styles.highlight}>menu button</Text> or | ||
<Text style={styles.highlight}>Shake</Text> your device to open the React | ||
Native debug menu. | ||
</Text> | ||
), | ||
}); | ||
|
||
export default DebugInstructions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
|
||
import React from 'react'; | ||
import {Platform, StyleSheet, Text} from 'react-native'; | ||
|
||
const styles = StyleSheet.create({ | ||
highlight: { | ||
fontWeight: '700', | ||
}, | ||
}); | ||
|
||
const ReloadInstructions = Platform.select({ | ||
ios: () => ( | ||
<Text> | ||
Press <Text style={styles.highlight}>Cmd+R</Text> in the simulator to | ||
reload your app's code | ||
</Text> | ||
), | ||
default: () => ( | ||
<Text> | ||
Double tap <Text style={styles.highlight}>R</Text> on your keyboard to | ||
reload your app's code | ||
</Text> | ||
), | ||
}); | ||
|
||
export default ReloadInstructions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters