Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use any Android modules on 0.11.2 #3080

Closed
satya164 opened this issue Sep 27, 2015 · 4 comments
Closed

Unable to use any Android modules on 0.11.2 #3080

satya164 opened this issue Sep 27, 2015 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@satya164
Copy link
Contributor

I'm getting errors such as #3031 with 0.11.2 when I try to use any Android native components like BackAndroid, TouchableNativeFeedback etc. Downgrading to 0.11.0 seems to resolve the issue.

I checked https://github.com/facebook/react-native/blob/master/Libraries/react-native/react-native.js in 0.11.2 and the Android modules were absent.

I did a diff between the current master version of the file and the 0.11.2 version, and this is the output.

--- react-native.js.a   2015-09-28 04:44:07.000000000 +0530
+++ react-native.js.b   2015-09-25 00:13:56.000000000 +0530
@@ -21,7 +21,6 @@
   // Components
   ActivityIndicatorIOS: require('ActivityIndicatorIOS'),
   DatePickerIOS: require('DatePickerIOS'),
-  DrawerLayoutAndroid: require('DrawerLayoutAndroid'),
   Image: require('Image'),
   ListView: require('ListView'),
   MapView: require('MapView'),
@@ -29,20 +28,15 @@
   Navigator: require('Navigator'),
   NavigatorIOS: require('NavigatorIOS'),
   PickerIOS: require('PickerIOS'),
-  ProgressBarAndroid: require('ProgressBarAndroid'),
   ProgressViewIOS: require('ProgressViewIOS'),
   ScrollView: require('ScrollView'),
   SegmentedControlIOS: require('SegmentedControlIOS'),
   SliderIOS: require('SliderIOS'),
-  SwitchAndroid: require('SwitchAndroid'),
   SwitchIOS: require('SwitchIOS'),
   TabBarIOS: require('TabBarIOS'),
   Text: require('Text'),
   TextInput: require('TextInput'),
-  ToastAndroid: require('ToastAndroid'),
-  ToolbarAndroid: require('ToolbarAndroid'),
   TouchableHighlight: require('TouchableHighlight'),
-  TouchableNativeFeedback: require('TouchableNativeFeedback'),
   TouchableOpacity: require('TouchableOpacity'),
   TouchableWithoutFeedback: require('TouchableWithoutFeedback'),
   View: require('View'),
@@ -56,7 +50,6 @@
   AppRegistry: require('AppRegistry'),
   AppStateIOS: require('AppStateIOS'),
   AsyncStorage: require('AsyncStorage'),
-  BackAndroid: require('BackAndroid'),
   CameraRoll: require('CameraRoll'),
   Dimensions: require('Dimensions'),
   Easing: require('Easing'),
@@ -78,7 +71,6 @@
   NativeAppEventEmitter: require('RCTNativeAppEventEmitter'),
   NativeModules: require('NativeModules'),
   Platform: require('Platform'),
-  processColor: require('processColor'),
   requireNativeComponent: require('requireNativeComponent'),

   // Prop Types

As you can see, all the Android modules are absent.

Also, I noticed that 0.11.0.tgz is 33M, while 0.11.1.tgz is 622K and 0.11.2.tgz is 715K. Weird.

@race604
Copy link

race604 commented Sep 28, 2015

Yes, I got the same problem.

race604 added a commit to race604/ZhiHuDaily-React-Native that referenced this issue Sep 28, 2015
There is an known issue here:
facebook/react-native#3080
So we just use 0.11.0 for now.
@vjeux
Copy link
Contributor

vjeux commented Sep 28, 2015

cc @ide

@ide
Copy link
Contributor

ide commented Sep 28, 2015

0.11.0 was pushed from another repo. We can add back the exports to react-native.js.

@ide
Copy link
Contributor

ide commented Sep 28, 2015

Published 0.11.3 with the exports.

@ide ide closed this as completed Sep 28, 2015
race604 added a commit to race604/ZhiHuDaily-React-Native that referenced this issue Sep 28, 2015
@facebook facebook locked as resolved and limited conversation to collaborators Jul 21, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 21, 2018
eagerbeaver0353 added a commit to eagerbeaver0353/ch-dailyapp-with-rn that referenced this issue May 11, 2023
secretdev718 added a commit to secretdev718/zhihudaily that referenced this issue May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants