Tuesday 10 September 2019

React Native Android module conflicting with Andorid Studio and React native builder

I have a React Native Android Native module which implements ActivityEventListener

In Android studio it generates a methods:

onActivityResult(int,int,IntentData)

But when I import it to react native and try to run android it asks for a onNewIntent(Intent intent) needs to implemented and

CLass is not abstract and does not override abstract method onActivityResult(Activity,int,int,Intent) in ActivityEventListener

How to get Android Studio and React Native to respect same requirements?

System:
OS: macOS 10.14.5
CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Memory: 33.43 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.15.3 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.11.3 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
  Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
  API Levels: 18, 21, 22, 23, 24, 25, 26, 27, 28
  Build Tools: 21.1.2, 23.0.1, 24.0.1, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3
  Android NDK: 18.1.5063045
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5314842
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6 
react-native: 0.60.5 => 0.60.5



from React Native Android module conflicting with Andorid Studio and React native builder

No comments:

Post a Comment