Skip to content

Commit

Permalink
fix: support for react-native 0.65 (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Aug 16, 2021
1 parent be1f63d commit a9b5260
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 31 deletions.
27 changes: 0 additions & 27 deletions example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,6 @@ const App = () => {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};

const hermes = global.HermesInternal ? (
<View style={styles.engine}>
<Text
style={[
styles.footer,
{
color: isDarkMode ? Colors.light : Colors.dark,
},
]}
>
Engine: Hermes
</Text>
</View>
) : null;

return (
<SafeAreaView style={backgroundStyle}>
<StatusBar barStyle={isDarkMode ? "light-content" : "dark-content"} />
Expand All @@ -75,7 +60,6 @@ const App = () => {
style={backgroundStyle}
>
<Header />
{hermes}
<View
style={{
backgroundColor: isDarkMode ? Colors.black : Colors.white,
Expand All @@ -102,10 +86,6 @@ const App = () => {
};

const styles = StyleSheet.create({
engine: {
position: "absolute",
right: 0,
},
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
Expand All @@ -122,13 +102,6 @@ const styles = StyleSheet.create({
highlight: {
fontWeight: "700",
},
footer: {
fontSize: 12,
fontWeight: "600",
padding: 4,
paddingRight: 12,
textAlign: "right",
},
});

export default App;
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use_flipper!({
'Flipper-RSocket' => '1.3.1',
})

use_test_app! do |target|
use_test_app! :hermes_enabled => false do |target|
target.tests do
pod 'Example-Tests', :path => '..'
end
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
"@react-native-community/cli-platform-android": ">=4.10.0",
"@react-native-community/cli-platform-ios": ">=4.10.0",
"mustache": "^4.0.0",
"react": "~16.8.6 || ~16.9.0 || ~16.11.0 || ~16.13.1 || ~17.0.1",
"react-native": "^0.0.0-0 || ^0.60.6 || ^0.61.5 || ^0.62.2 || ^0.63.2 || ^0.64.0 || 1000.0.0",
"react": "~16.8.6 || ~16.9.0 || ~16.11.0 || ~16.13.1 || ~17.0.1 || ~17.0.2",
"react-native": "^0.0.0-0 || ^0.60.6 || ^0.61.5 || ^0.62.2 || ^0.63.2 || ^0.64.0 || ^0.65.0 || 1000.0.0",
"react-native-macos": "^0.60.0 || ^0.61.0 || ^0.62.0 || ^0.63.0",
"react-native-windows": "^0.62.0 || ^0.63.0 || ^0.64.0"
},
Expand Down
8 changes: 8 additions & 0 deletions scripts/set-react-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ const profiles = {
"react-native-macos": undefined,
"react-native-windows": "^0.64.11",
},
0.65: {
"hermes-engine": "~0.8.1",
react: "17.0.2",
"react-native": "^0.65.0-0",
"react-native-codegen": "0.0.7",
"react-native-macos": undefined,
"react-native-windows": undefined,
},
"canary-macos": {
react: "16.13.1",
"react-native": "^0.63.4",
Expand Down
2 changes: 1 addition & 1 deletion test-app.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def cliAndroidDir = findNodeModulesPath(rootDir, "@react-native-community/cli-pl
apply from: "$cliAndroidDir/native_modules.gradle"

ext.applyTestAppSettings = { DefaultSettings defaultSettings ->
buildscript { scriptHandler ->
buildscript { scriptHandler ->
apply from: "$scriptDir/android/force-resolve-trove4j.gradle", to: scriptHandler
}

Expand Down

0 comments on commit a9b5260

Please sign in to comment.