Skip to content

Commit eeb634f

Browse files
committed
Downgrade to 0.55.4 because 0.56.0 is not working on windows
1 parent f83b471 commit eeb634f

File tree

17 files changed

+768
-683
lines changed

17 files changed

+768
-683
lines changed

.flowconfig

+1-14
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,6 @@ node_modules/react-native/flow-github/
3030
emoji=true
3131

3232
module.system=haste
33-
module.system.haste.use_name_reducers=true
34-
# get basename
35-
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
36-
# strip .js or .js.flow suffix
37-
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
38-
# strip .ios suffix
39-
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
40-
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
41-
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
42-
module.system.haste.paths.blacklist=.*/__tests__/.*
43-
module.system.haste.paths.blacklist=.*/__mocks__/.*
44-
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
45-
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
4633

4734
munge_underscores=true
4835

@@ -64,4 +51,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
6451
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
6552

6653
[version]
67-
^0.75.0
54+
^0.67.0

App.js

+19-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
/**
22
* Sample React Native App
33
* https://github.com/facebook/react-native
4-
*
5-
* @format
64
* @flow
75
*/
86

9-
import React, {Component} from 'react';
10-
import {Platform, StyleSheet, Text, View} from 'react-native';
7+
import React, { Component } from 'react';
8+
import {
9+
Platform,
10+
StyleSheet,
11+
Text,
12+
View
13+
} from 'react-native';
1114

1215
const instructions = Platform.select({
13-
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
14-
android:
15-
'Double tap R on your keyboard to reload,\n' +
16+
ios: 'Press Cmd+R to reload,\n' +
17+
'Cmd+D or shake for dev menu',
18+
android: 'Double tap R on your keyboard to reload,\n' +
1619
'Shake or press menu button for dev menu',
1720
});
1821

@@ -21,9 +24,15 @@ export default class App extends Component<Props> {
2124
render() {
2225
return (
2326
<View style={styles.container}>
24-
<Text style={styles.welcome}>Welcome to React Native!</Text>
25-
<Text style={styles.instructions}>To get started, edit App.js</Text>
26-
<Text style={styles.instructions}>{instructions}</Text>
27+
<Text style={styles.welcome}>
28+
Welcome to React Native!
29+
</Text>
30+
<Text style={styles.instructions}>
31+
To get started, edit App.js
32+
</Text>
33+
<Text style={styles.instructions}>
34+
{instructions}
35+
</Text>
2736
</View>
2837
);
2938
}

android/app/proguard-rules.pro

+53
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,56 @@
1515
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1616
# public *;
1717
#}
18+
19+
# Disabling obfuscation is useful if you collect stack traces from production crashes
20+
# (unless you are using a system that supports de-obfuscate the stack traces).
21+
-dontobfuscate
22+
23+
# React Native
24+
25+
# Keep our interfaces so they can be used by other ProGuard rules.
26+
# See http://sourceforge.net/p/proguard/bugs/466/
27+
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28+
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29+
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30+
31+
# Do not strip any method/class that is annotated with @DoNotStrip
32+
-keep @com.facebook.proguard.annotations.DoNotStrip class *
33+
-keep @com.facebook.common.internal.DoNotStrip class *
34+
-keepclassmembers class * {
35+
@com.facebook.proguard.annotations.DoNotStrip *;
36+
@com.facebook.common.internal.DoNotStrip *;
37+
}
38+
39+
-keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40+
void set*(***);
41+
*** get*();
42+
}
43+
44+
-keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45+
-keep class * extends com.facebook.react.bridge.NativeModule { *; }
46+
-keepclassmembers,includedescriptorclasses class * { native <methods>; }
47+
-keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; }
48+
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; }
49+
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; }
50+
51+
-dontwarn com.facebook.react.**
52+
53+
# TextLayoutBuilder uses a non-public Android constructor within StaticLayout.
54+
# See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details.
55+
-dontwarn android.text.StaticLayout
56+
57+
# okhttp
58+
59+
-keepattributes Signature
60+
-keepattributes *Annotation*
61+
-keep class okhttp3.** { *; }
62+
-keep interface okhttp3.** { *; }
63+
-dontwarn okhttp3.**
64+
65+
# okio
66+
67+
-keep class sun.misc.Unsafe { *; }
68+
-dontwarn java.nio.file.*
69+
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
70+
-dontwarn okio.**
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

index.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/** @format */
2-
3-
import {AppRegistry} from 'react-native';
1+
import { AppRegistry } from 'react-native';
42
import App from './App';
5-
import {name as appName} from './app.json';
63

7-
AppRegistry.registerComponent(appName, () => App);
4+
AppRegistry.registerComponent('ReactNativeAdvancedWorkshop', () => App);

ios/ReactNativeAdvancedWorkshop.xcodeproj/project.pbxproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@
11731173
"$(inherited)",
11741174
);
11751175
INFOPLIST_FILE = ReactNativeAdvancedWorkshopTests/Info.plist;
1176-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1176+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
11771177
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
11781178
OTHER_LDFLAGS = (
11791179
"-ObjC",
@@ -1190,7 +1190,7 @@
11901190
BUNDLE_LOADER = "$(TEST_HOST)";
11911191
COPY_PHASE_STRIP = NO;
11921192
INFOPLIST_FILE = ReactNativeAdvancedWorkshopTests/Info.plist;
1193-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1193+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
11941194
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
11951195
OTHER_LDFLAGS = (
11961196
"-ObjC",
@@ -1372,7 +1372,7 @@
13721372
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
13731373
GCC_WARN_UNUSED_FUNCTION = YES;
13741374
GCC_WARN_UNUSED_VARIABLE = YES;
1375-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1375+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
13761376
MTL_ENABLE_DEBUG_INFO = YES;
13771377
ONLY_ACTIVE_ARCH = YES;
13781378
SDKROOT = iphoneos;
@@ -1407,7 +1407,7 @@
14071407
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
14081408
GCC_WARN_UNUSED_FUNCTION = YES;
14091409
GCC_WARN_UNUSED_VARIABLE = YES;
1410-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1410+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
14111411
MTL_ENABLE_DEBUG_INFO = NO;
14121412
SDKROOT = iphoneos;
14131413
VALIDATE_PRODUCT = YES;

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"test": "jest"
88
},
99
"dependencies": {
10-
"react": "16.4.1",
11-
"react-native": "0.56.0"
10+
"react": "16.3.1",
11+
"react-native": "0.55.4"
1212
},
1313
"devDependencies": {
1414
"babel-jest": "23.4.2",
15-
"babel-preset-react-native": "5",
15+
"babel-preset-react-native": "4.0.0",
1616
"jest": "23.5.0",
17-
"react-test-renderer": "16.4.1"
17+
"react-test-renderer": "16.3.1"
1818
},
1919
"jest": {
2020
"preset": "react-native"

0 commit comments

Comments
 (0)