lm
Size: a a a
lm
Л
S
Л
VP
*#06#
оно может по-разному отработать, и я пока не знаю как именно это будет в java выглядеть.Л
*#06#
оно может по-разному отработать, и я пока не знаю как именно это будет в java выглядеть.Л
VP
VP
S
GB
import { NativeModules, Alert } from 'react-native';
// const { RNUssdDial } = NativeModules;
var RNUssdDial = {
getDeviceName: () => {
NativeModules.Device.getDeviceName((err, name) => {
console.log(err, name);
});
},
dialNumber: (number) => {
NativeModules.Device.dialNumber((number) => {
Alert.alert(number)
});
}
}
export default RNUssdDial;
GB
GB
@ReactMethod
public void dialNumber(String number) {
number = Uri.encode(number);
String url = "tel:" + number;
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(url));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
this.reactContext.startActivity(intent);
}
GB
GB
GB
GB
GB
АБ
G