@@ -19,8 +19,9 @@ module.exports = platform => [{
19
19
apply plugin: 'com.android.library'
20
20
apply plugin: 'maven'
21
21
22
- // Matches values in recent template from React Native ( 0.59)
22
+ // Matches values in recent template from React Native 0.59 / 0.60
23
23
// https://github.com/facebook/react-native/blob/0.59-stable/template/android/build.gradle#L5-L9
24
+ // https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle#L5-L9
24
25
def DEFAULT_COMPILE_SDK_VERSION = 28
25
26
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
26
27
def DEFAULT_MIN_SDK_VERSION = 16
@@ -44,8 +45,9 @@ android {
44
45
repositories {
45
46
maven {
46
47
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
47
- // Matches recent template from React Native ( 0.59)
48
+ // Matches recent template from React Native 0.59 / 0.60
48
49
// https://github.com/facebook/react-native/blob/0.59-stable/template/android/build.gradle#L30
50
+ // https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle#L28
49
51
url "$projectDir/../node_modules/react-native/android"
50
52
}
51
53
mavenCentral()
@@ -179,7 +181,10 @@ public class ${name}Module extends ReactContextBaseJavaModule {
179
181
180
182
import android.view.View;
181
183
184
+ // AppCompatCheckBox import for React Native pre-0.60:
182
185
import android.support.v7.widget.AppCompatCheckBox;
186
+ // AppCompatCheckBox import for React Native 0.60(+):
187
+ // import androidx.appcompat.widget.AppCompatCheckBox;
183
188
184
189
import com.facebook.react.uimanager.SimpleViewManager;
185
190
import com.facebook.react.uimanager.ThemedReactContext;
0 commit comments