goldenowlasia / react-native-twitter-signin Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Not sure how else to contact you guys about this but usually
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new FacebookLoginPackage(),
new TwitterSigninPackage(),
new RNGoogleSigninPackage(this),
new VectorIconsPackage(),
new RNSvgPackage()
);
}
Resides in android/app/src/…/MainApplication.java file, not MainActivity.java
(at least according to the React Native docs; this is also the place react-native link puts the above code)
When building I get this error:
No visible @interface for 'Twitter' declares the selector 'logInWithMethods::'
I'm using RN 0.4 and Twitter Kit 3.0.3
When I try to move through the auth flow. After I approve the app to have permissions the screen never redirects back to the application. It stays on the twitter screen:
The if I click done I get this react error:
I use this code as a callback from a button press (the RNTwitterSignIn
is imported earlier successfully):
_twitterSignin() {
RNTwitterSignIn.init("KEY", "SECRET");
RNTwitterSignIn.logIn()
.then((loginData)=>{
console.warn(loginData);
const { authToken, authTokenSecret } = loginData;
if (authToken && authTokenSecret) {
// TODO
}
}).catch(console.error);
}
Any thoughts on how to get this working? Thanks in advance.
Hey, I have been using this lib with Android version 7.0.0 and 6.0 which was really working fine, but when I tested the same app with Android version 5.0.1 it's not working out when I click on button it loads to twitter sign page (usually it does) and shows the twitter login in android version 6 and 7, but in android version 5 it automatically closes and doesn't show the login page.
Can anyone please tell me, how to resolve this issue??pls,pls!!
Follow the instructions as written, but what i get is this
undefined is not an object(evaluating 'TwitterSignin.logIn')
React Native Version - 0.39.2
Using in iOS and RN 47.1 along with Facebook login
No error is thrown, but the promise of this function is never resolved.
What could cause that?
Here is my AppDelegate.m
#import <TwitterKit/TwitterKit.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import "RNTwitterSignIn.h"
#define TWITTER_SCHEME @"twitterkit-myKey"
#define FACEBOOK_SCHEME @"fbmyFbKey"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//more code
[[Twitter sharedInstance] startWithConsumerKey:@"myKey" consumerSecret:@"mySecret"];
[[FBSDKApplicationDelegate sharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
//more code
}
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options
{
return [[FBSDKApplicationDelegate sharedInstance] application:app
openURL:url
sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
annotation:options[UIApplicationOpenURLOptionsAnnotationKey]] ||
[[Twitter sharedInstance] application:app openURL:url options:options];
}
i'm facing the below issue when i click on twitter-login button
com.twitter.sdk.android.core.TwitterAuthException: Failed to get request token
can some one help me in this, its bit urgent.
Thanks in advance
[Fabric] [Fabric +with] called multiple times. Only the first call is honored, please pass all kits you wish to initialize
[TwitterKit] No matching scheme found.
[TwitterKit] did encounter error with message "Error obtaining user auth token.": Error Domain=TWTRLogInErrorDomain Code=-1 "{"errors":[{"code":32,"message":"Could not authenticate you."}]}"
UserInfo={NSLocalizedDescription={"errors":[{"code":32,"message":"Could not authenticate you."}]}}
This is my call in AppDelegate.m
[Fabric with:@[[Twitter class]]];
I tried everything from other issues, did not help me
react-native-cli: 1.0.0
react-native: 0.44.0
Please, contact me if u have some solutions, tyvm
[email protected]
EDIT: Solved! Sry guys!
Please update your code for solve Android compile error. Thanks.
//TwitterSigninModule.java
// ...
@Override
public void onNewIntent(Intent intent) {
}
@Override
public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
if(twitterAuthClient != null && twitterAuthClient.getRequestCode()==requestCode) {
boolean twitterLoginWasCanceled = (resultCode == RESULT_CANCELED);
twitterAuthClient.onActivityResult(requestCode, resultCode, data);
}
}
React native 0.38 and 0.39
import React, { Component } from 'react';
import {
AppRegistry,
NativeModules,
Text
} from 'react-native';
const { TwitterSignin } = NativeModules;
export default class Workbench extends Component {
_twitterSignIn() {
TwitterSignin.logIn('secret_key', 'secret_key2', (error, loginData) => {
if (!error) {
} else {
alert('asd');
// Alert.alert('Invalid login', 'Unable to login');
}
});
}
render() {
return (
<Text onPress={this._twitterSignIn.bind(this)}>Sign in</Text>
);
}
}
AppRegistry.registerComponent('Workbench', () => Workbench);
Please update the documentation.
This framework will not work on android with twitterKit < 3.1.0 if twitter app is not installed on device.
This is due to a known issue in twitterKit.
TwitterKit will return the error USER_CANCELLED.
Ref : https://twittercommunity.com/t/bug-twitter-kit-ios-3-0-4-login-without-twitter-app-installed-fails-to-call-completion-when-no-network-connection/90141/6
Hello everyone
After login with twitter i need to access some twitter rest API using the logged user credentials .
How can i perform on this ?
Thank you in advance
Hello @GoldenowlConsultingCompany , thanks for the tutorial.
I have one issue. I went through the tutorial and followed all the instruction.
const { RNTwitterSignIn } = NativeModules;
const Constants = {
TWITTER_CONSUMER_KEY: '',
TWITTER_CONSUMER_SECRET: '',
};
RNTwitterSignIn.init(Constants.TWITTER_CONSUMER_KEY, Constants.TWITTER_CONSUMER_SECRET);
While initializing RNTwitterSignIn with TWITTER_CONSUMER_KEY and TWITTER_CONSUMER_SECRET, app got crash. It says
Cannot read property 'init' of undefined
Please check the below screen shot. Please let me know where i am going wrong.
Thanks
extends SocialButton // Is undefined
Constants.TWITTER_COMSUMER_KEY, Constants.TWITTER_CONSUMER_SECRET // is undefined
or can i create a class extending from React.Component?
or please give un full example...
After adding package my build is unsuccessful. below is the error I am getting. please help. Thanks
:app:processDebugResources
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:9: AAPT: No resource found that matches the given name (at 'style' with value '@style/tw__Permission_Container').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:24: AAPT: No resource found that matches the given name (at 'style' with value '@style/tw__Permission_Title').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:32: AAPT: No resource found that matches the given name (at 'style' with value '@style/tw__Permission_Description').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:40: AAPT: No resource found that matches the given name (at 'style' with value '@style/tw__ButtonBar').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:47: AAPT: No resource found that matches the given name (at 'layout_marginLeft' with value '@dimen/tw__btn_bar_margin_left').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:47: AAPT: No resource found that matches the given name (at 'layout_marginRight' with value '@dimen/tw__btn_bar_margin_right').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:47: AAPT: No resource found that matches the given name (at 'layout_marginStart' with value '@dimen/tw__btn_bar_margin_left').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:47: AAPT: No resource found that matches the given name (at 'layout_marginEnd' with value '@dimen/tw__btn_bar_margin_right').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:59: AAPT: No resource found that matches the given name (at 'layout_marginLeft' with value '@dimen/tw__btn_bar_margin_left').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:59: AAPT: No resource found that matches the given name (at 'layout_marginRight' with value '@dimen/tw__btn_bar_margin_right').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:59: AAPT: No resource found that matches the given name (at 'layout_marginStart' with value '@dimen/tw__btn_bar_margin_left').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_contacts.xml:59: AAPT: No resource found that matches the given name (at 'layout_marginEnd' with value '@dimen/tw__btn_bar_margin_right').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_failure.xml:8: AAPT: No resource found that matches the given name (at 'style' with value '@style/tw__Permission_Container').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_failure.xml:23: AAPT: No resource found that matches the given name (at 'style' with value '@style/tw__Permission_Title').
/Users/android/workspace/jenkins/workspace/fabric-android-deploy-to-staging/sdk/kits/digits/src/main/res/layout/dgts__activity_failure.xml:32: AAPT: No resource found that matches the given name (at 'style' with value '@style/tw__Permission_Description').
Hi Guys,
Is there a way to force login for android, just the way we can do it in iOS? - I have also asked about it in twitter forums..
https://twittercommunity.com/t/fabric-android-force-login/77974
Regards,
Abhay
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
I went through all instructions and run the project but I hadn't find NativeModules in React from 'react-native'. And find that that my link didn't link ios module.
I'm getting this error:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_TWTRAPIClient", referenced from:
objc-class-ref in TwitterSignin-DD11A2C65187B8A2.o
"_OBJC_CLASS_$_Twitter", referenced from:
objc-class-ref in TwitterSignin-DD11A2C65187B8A2.o
objc-class-ref in AppDelegate.o
(maybe you meant: _OBJC_CLASS_$_TwitterSignin)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm used to adding .xcodeproj libraries, but not individual files like this. What I've done is I added the TwitterKit fabric library (something not mentioned in the documentation) and overcame some initial errors, but now I'm getting the above issue, which seems to have to do with linking the binaries, compile sources etc. I added Twitter.framework to Link Binary With Libaries
and now I've tried adding Twitter.Signin.m/h
to the Compile sources, but no luck.
What am I missing?
I migrated my project from RN 0.27 to 0.29,
Please define the structure of MainActivity.java & MainApplication.java
WARNING [Project: :app] Current NDK support is deprecated. Alternative will be provided in the future.
WARNING [Project: :react-native-share] Current NDK support is deprecated. Alternative will be provided in the future.
Crashlytics was applied to an android-library project.
Android-library support is currently an incubating feature.
Contact [email protected] with any issues.
Crashlytics couldn't find the res folder specified in sourceSets.main.res, please make one. It picked: src/main/res
Crashlytics couldn't find the res folder specified in sourceSets.main.res, please make one. It picked: src/main/res
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find com.twitter.sdk.android:twitter:1.13.1.
Searched in the following locations:
https://jcenter.bintray.com/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.pom
https://jcenter.bintray.com/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.aar
file:/home/waleed/Documents/zig-android/node_modules/react-native/android/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.pom
file:/home/waleed/Documents/zig-android/node_modules/react-native/android/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.aar
file:/home/waleed/Android/Sdk/extras/android/m2repository/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.pom
file:/home/waleed/Android/Sdk/extras/android/m2repository/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.aar
file:/home/waleed/Android/Sdk/extras/google/m2repository/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.pom
file:/home/waleed/Android/Sdk/extras/google/m2repository/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.aar
Required by:
Zig:app:unspecified > Zig:react-native-twitter-signin:unspecified
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Hi i just wanna is how can i resolve this issue?
I Got Error when i running the project..
Here may code:
function twitterPressHandler() {
console.log('Twitter functions goes here!');
RNTwitterSignIn.init(Constants.TWITTER_COMSUMER_KEY, Constants.TWITTER_CONSUMER_SECRET);
RNTwitterSignIn.logIn()
.then((loginData)=>{
console.log(loginData);
const { authToken, authTokenSecret } = loginData;
if (authToken && authTokenSecret) {
this.setState({
isLoggedIn: true,
});
}
}).catch((error)=>{
console.log(error);
});
}
I hope i can get resolution on this issue thanks alot!
I am using react-native-twitter-signin. I want to receive user's profile picture url. Any ideas?
if I try to logout in next session after log in I get this:
Must initialize Twitter before using getInstance()
checkInitialized
Twitter.java:143
getInstance
Twitter.java:151
getInstance
TwitterCore.java:88
logOut
TwitterSigninModule.java:97
invoke
Method.java
invoke
Method.java:372
invoke
JavaMethodWrapper.java:374
invoke
JavaModuleWrapper.java:162
run
NativeRunnable.java
handleCallback
Handler.java:739
dispatchMessage
Handler.java:95
dispatchMessage
MessageQueueThreadHandler.java:31
loop
Looper.java:135
run
MessageQueueThreadImpl.java:194
run
Thread.java:818
We should call init
before logout perhaps
reproduce:
Hey @GoldenOwlAsia great repo, and it worked as expected on the first try!
I was wondering if it was possible to log a user out? I was able to successfully log in once, but I would like to log out so that another Twitter user could log in.
Is there any way to achieve this right now? I'm not an expert at Objective C, but I could only find one logIn method available to me.
Please let me know what you think, and thanks again!
Gives error trying to call LogIn method that documentation says
Any idea when the updates to the repo will be pushed to npm?
Followed all your instructions, and I've integrated with lots of other RN modules.
A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find com.twitter.sdk.android:twitter:1.13.1.
Searched in the following locations:
file:/Users/webfreelance10/nerdhq/node_modules/react-native/android/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.pom
file:/Users/webfreelance10/nerdhq/node_modules/react-native/android/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.aar
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.pom
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.aar
file:/usr/local/opt/android-sdk/extras/google/m2repository/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.pom
file:/usr/local/opt/android-sdk/extras/google/m2repository/com/twitter/sdk/android/twitter/1.13.1/twitter-1.13.1.aar
Required by:
EAPlay:app:unspecified > EAPlay:react-native-twitter-signin:unspecified
How to apply for a permission retrieve user's email. Can I get an example please?
Code:
const Constants = {
TWITTER_COMSUMER_KEY: 'XXXXXXX',
TWITTER_CONSUMER_SECRET: 'XXXXXXXXXXXX',
};
export default class twitterLogin extends Component {
constructor(props) {
super(props);
this.state = {
isLoggedIn: false,
}
this.handleLogout = this.handleLogout.bind(this);
}
_twitterSignIn() {
RNTwitterSignIn.init(Constants.TWITTER_COMSUMER_KEY, Constants.TWITTER_CONSUMER_SECRET);
RNTwitterSignIn.logIn()
.then((loginData)=>{
console.log(loginData);
const { authToken, authTokenSecret } = loginData;
if (authToken && authTokenSecret) {
this.setState({
isLoggedIn: true,
});
}
}).catch((error)=>{
console.log(error);
});
}
handleLogout() {
console.log('logout');
RNTwitterSignIn.logOut();
this.setState({
isLoggedIn: false,
});
}
render() {
const { isLoggedIn } = this.state;
return (
<View style={{flex: 1}}>
{
isLoggedIn
?
<TouchableOpacity
onPress={this.handleLogout}
>
<Text>Log out</Text>
</TouchableOpacity>
:
<Icon.Button name='logo-twitter' size={32} color='white' style={styles.icon} onPress={this._twitterSignIn.bind(this)}>
Login with Twitter
</Icon.Button>
}
</View>
);
}
}
Exception in native call
java.lang.RuntimeException: Could not invoke TwitterSignin.logIn
at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:359)
at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:136)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
at android.os.Looper.loop(Looper.java:148)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:345)
at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:136)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
at android.os.Looper.loop(Looper.java:148)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NoClassDefFoundError: com.twitter.sdk.android.tweetui.internal.UserSessionProvider
at com.twitter.sdk.android.tweetui.TweetUi.onPreExecute(TweetUi.java:94)
at io.fabric.sdk.android.InitializationTask.onPreExecute(InitializationTask.java:44)
at io.fabric.sdk.android.services.concurrency.AsyncTask.executeOnExecutor(AsyncTask.java:611)
at io.fabric.sdk.android.services.concurrency.PriorityAsyncTask.executeOnExecutor(PriorityAsyncTask.java:43)
at io.fabric.sdk.android.Kit.initialize(Kit.java:69)
at io.fabric.sdk.android.Fabric.initializeKits(Fabric.java:439)
at io.fabric.sdk.android.Fabric.init(Fabric.java:383)
at io.fabric.sdk.android.Fabric.setFabric(Fabric.java:341)
at io.fabric.sdk.android.Fabric.with(Fabric.java:312)
at com.goldenowl.twittersignin.TwitterSigninModule.logIn(TwitterSigninModule.java:58)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:345)
at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:136)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
at android.os.Looper.loop(Looper.java:148)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
at java.lang.Thread.run(Thread.java:818)
Hello,
Here a screenshot of the bug: https://gyazo.com/136f72615681db7b40280c61011770e2
Can you help me please ?
Thank you,
Clément
Either add the peer dependency or ask people to install it:
npm install --save react-native-vector-icons
and run
react-native link react-native-vector-icons
when they're done
xcode version 9.1
react-native version 50.4
react-native-twitter-signing version 1.0.2
RNTwitterSignIn.init() error
I don't really understand the error but under debug navigator it shows this:
#0 facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&) at <project-location>/node_modules/react-native/React/CxxModule/RCTNativeModule.mm:114
it says:
Thread 1: EXC_BREAKPOINT (code=1, subcode=0x102aa7c34)
Facing error. When twitter sign in uses saved account in ios settings. Please help.
userInfo:
{ NSLocalizedFailureReason: 'Twitter API error : Invalid or expired token. (code 89)',
NSErrorFailingURLKey: null,
NSLocalizedDescription: 'Request failed: unauthorized (401)',
TWTRNetworkingStatusCode: 401 },
domain: 'TwitterAPIErrorDomain' }
I am using react-native-twitter-signin in my react native app. All working fine but after connecting my app with twitter account I am not receiving any response.
I copied whole code, put my api key and ap secret but not getting anything.
On RN v0.40, iOS native headers have been moved. Imports of RN Headers should be changed from:
#import "RCTBridge.h"
to
#import <React/RCTBridge.h>
Nothing happens when i try to login, except the message below in log:
[Fabric] [Fabric +with] called multiple times. Only the first call is honored, please pass all kits you wish to initialize
Earlier everything worked perfectly, but then i had an error in other package and while i was fighting it, i have made npm update
, react-native link
and also included Pod system
Googling doesn't helped, it seems i'm the first with this error
Hi,
react-native: 0.47.2
react-native-twitter-signin: 1.0.2
There is an error while building:
:react-native-twitter-signin:compileReleaseJavaWithJavac ...node_modules\react-native-twitter-signin\
android\src\main\java\com\goldenowl\twittersignin\TwitterSigninPackage.java:28:
error: method does not override or implement a method from a supertype
@Override
^
1 error
It seems createJSModules @OverRide is deprecated: oblador/react-native-vector-icons#515
If it is commented, you can build again:
//@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList();
}
Hi...
This is great package for login with twitter for react native.It is working good.But I have one issue.
Twitter app is installed in my ios device and i logged in with my twitter account in twitter app.After that when I tried to login with twitter using this package in my react native app,it does not use that twitter account and opening login screen.
By default ,it has to use default logged in twitter account of Twitter app just like facebook provides.
react-native-twitter-signin/Example/TwitterButton.js
Lines 24 to 40 in 5d57b21
I am not sure, but looks like possible issue is here.
Also: better to wrap init into try {} catch() {}
to avoid uncathed native crashes
React-native 0.35
/Users/job/workspace/spartask-mobile/node_modules/react-native-twitter-signin/android/src/main/java/com/goldenowl/twittersignin/TwitterSigninModule.java:32: error: TwitterSigninModule is not abstract and does not override abstract method onNewIntent(Intent) in ActivityEventListener
public class TwitterSigninModule extends ReactContextBaseJavaModule implements ActivityEventListener {
^
/Users/job/workspace/spartask-mobile/node_modules/react-native-twitter-signin/android/src/main/java/com/goldenowl/twittersignin/TwitterSigninModule.java:88: error: method does not override or implement a method from a supertype
@Override
^
2 errors
:react-native-twitter-signin:compileReleaseJavaWithJavac FAILED
Hey, in first place let me thank you for this package.
I've been able to run it on android however installing fabric successfully and after adding TwitterSignIn.m and TwitterSignIn.h to Libraries
#import "RCTEventDispatcher.h"
displays error, file not found.
Any idea whats missing? Isn't RCTEventDispatcher from react?
hi could you check this out on why the execution of onpress button for twitter login to failed?
thanks,
UPDATE########
I have solve this issue, just go to this link
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.