yeyintkoko / react-native-sms-x Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Versión iOS?
Hi everyone I get this error when I click sends SMS button.
sendSMSFunction() {
SendSMS.send(123, "+95912345678", "Hey.., this is me!\nGood to see you. Have a nice day.",
(msg)=>{
ToastAndroid.show(msg, ToastAndroid.SHORT);
}
);
}
i am using code from example.
Thanks
react-native-cli: 2.0.1
react-native: 0.57.3
Could you please consider to follow https://stackoverflow.com/questions/15808654/how-to-send-a-very-long-messages-with-smsmanager to divide the message and send all?
Please merge the open pull requests and update the package on npm so we can update the package with ease from the npm repository.
People are forced to publish their own repositories due to the open abandoned PRs and issues. It's important to have one centralized package instead of having one separate package for each of the users.
If I see no activity on this repo for a long, I will have to publish a new package with the open PRs merged.
Hi, after installed react-native-sms-x, when run npm start, this error returns
root@developer1:/var/www/html/senderfy# npm start
[email protected] start /var/www/html/senderfy
react-native-scripts start
14:43:30: Starting packager...
ERROR STARTING PACKAGER
Starting React Native packager...
Scanning folders for symlinks in /var/www/html/senderfy/node_modules (15ms)
Loading dependency graph.
jest-haste-map: @providesModule naming collision:
Duplicate module name: react-native
Paths: /var/www/html/senderfy/node_modules/react-native-sms-x/node_modules/react->native/package.json collides with /var/www/html/senderfy/node_modules/react-native/package.json
This warning is caused by a @providesModule declaration with the same name across two different files.
I am attempting to install this but SmsManager is no longer available ? can anyone confirm or provide an alternative resuource to send sms from background?
Thanks.
Hi,
When i use your lib i get
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-sms-x'.
> failed to find Build Tools revision 24.0.1
I tried to check if everything was okay and it was as how you recommended in README (double checked).
I can't really figure out what's wrong but i thought i should let you know about this.
Thanks.
When I try to build my app for android, I get the following warning:
> Configure project :react-native-sms-x
WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
I guess this line is causing the problem:
I added the
to the AndroidManifest.xml
But I stll get this message - Snding SMS message: uid 10216 does not have android.premission.SEND_SMS.
Why is that?
Should I add anything else to manifest? Or anything else I am missing?
hey
i get this error after install the package
node_modules\react-native-sms-x\android\app\src\main\java\com\someone\sendsms\SendSMSPackage.java:27: error: method does not override or implement a method from a supertype
@Override
^
1 error
:react-native-sms-x:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-sms-x:compileReleaseJavaWithJavac'.
what was wrong?
Window 10 , RN 48.4
Hi,
I did all the steps as instructed, but when I press button "Send SMS", the program stops and exits
So I installed this package into my app and after it finished installing from npm and I start react-native packager I get the following errors without making the changes in the android folder. The problem persists even after making the changes in the android folder that were instructed from the readme. Here are the errors:
Failed to build DependencyGraph: @providesModule naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/kennetpostigo/Projects/react-native/node_modules/react-native-sms-x/node_modules/react-native/local-cli/core/__fixtures__/files/package.json colli
ative/node_modules/react-native/local-cli/core/__fixtures__/files/package.json
This error is caused by a @providesModule declaration with the same name across two different files.
Error: @providesModule naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/kennetpostigo/Projects/react-native/node_modules/react-native-sms-x/node_modules/react-native/local-cli/core/__fixtures__/files/package.json colli
ative/node_modules/react-native/local-cli/core/__fixtures__/files/package.json
This error is caused by a @providesModule declaration with the same name across two different files.
at HasteMap._updateHasteMap (/Users/kennetpostigo/Projects/react-native/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:159:13)
at p.getName.then.name (/Users/kennetpostigo/Projects/react-native/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:134:31)
Do you know why this occurs?
Cuando sale la versión para enviar a varios números telefónicos
On apps with compileSdkVersion above 31, this error will be thrown when trying to send an SMS:
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
while running its showing that this module has no declaration file
I have a lot of errors related with compileSdkVersion and buildToolsVersion
error: style attribute 'android:attr/colorError not found' not found.
error: style attribute 'android:attr/keyboardNavigationCluster' not found.
error: resource android:attr/dialogCornerRadius not found.
...
this issue was resolved by adding the following lines in your android/build.gradle file
allprojects {
...
subprojects {
afterEvaluate {
project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
}
}
}
}
}
Hi guys, thanks for the package,
It's working on most the devices I tried but on this huawei y6 with android 9 it's sending the message, another phone is receiving it, but unfortunately it doesn't show up on the message list on the sms app.
also when someone replies to the message, i don't get any text.
any idea?
Can i setup this package with Expo? i get error: Typerror:null is not an object(evaluating '_reactNativeGetSmsX.default.send')
I am having issues while sending lengthy messages through react-native-sms-x. The plugin works perfectly when dealing with small messages. but when I send lengthy SMS through the app. The app doesn't show any error but also not send SMS.
Hello!
I am testing the component and using the suggested example, just changing my phone number. But, the error "java.lang.Double cannot be cast to java.lang.String" occurs. I looked for some solution on Google but I didn't find anything that I could apply to solve it in use with "react-native-sms-x". Can anybody help me?
This is my code:
request(PERMISSIONS.ANDROID.SEND_SMS).then(result => {
SendSMS.send(
123,
'+55<my_number>',
'Hey.., this is me!\nGood to see you. Have a nice day.',
msg => {
ToastAndroid.show(msg, ToastAndroid.SHORT);
},
);
});
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.