« first day (1785 days earlier)      last day (2332 days later) » 

9:11 AM
Hi I want to perform onPress on a List. This is my code:- <List containerStyle={{ marginBottom: 20 }}>
{list.map((l, i) => (
<ListItem
roundAvatar
avatar={{ uri: l.avatar_url }}
key={i}
title={l.name}
onPress={() => navigate('screen1')}

/>
))}
</List>
 
1 message moved from JavaScript
 
 
2 hours later…
10:50 AM
var currentIndex = 0;
describe('businessmagnet', function() {
it('should open the site', function() {
browser.driver.get('https://www.xxxxx.co.uk/a.htm');
browser.driver.ignoreSynchronization = true;
browser.driver.findElements(by.css('#moreproductlist > .product-block-small > .company-title-address > .product-company-title > a')).then(function(items) {
getDetails(items, currentIndex);
});

function getDetails(company_details, index) {
browser.isElementPresent(company_details[index]).then(function() {
 
1 message moved from JavaScript
 
11:33 AM
How to call all the function in functionNames array

var functionNames=['fun1','fun2','fun3','fun4','fun5'];
for(var i=0; i < functionNames.length; i++)
{
//LoadDataList is the service name
LoadDataList.functionNames[i]().then(function(Response){

console.log("Pravin inSide func "+Response);
});
}
 
1 message moved from JavaScript
 
 
5 hours later…
4:20 PM
function printDiv(divName) {
var printContents = document.getElementById(divName).innerHTML;
var originalContents = document.body.innerHTML;

document.body.innerHTML = printContents;

window.print();

document.body.innerHTML = originalContents;
}
 
1 message moved from JavaScript
 
4:56 PM
@NathanJones Are you sayng this?

return new Promise(function (resolve, reject) {

Database.Devices.getDeviceById(deviceId).then(function(device) {
//Do Child work

Controllers.Gps.getRadioInfo('gps', 'info', {}, device).then(function (data) {
createLog('debug', __dirname, __filename.slice(__dirname.length + 1, - 3), deviceId, 'runChild', 'data', data);
Controllers.Gps.sendDeviceInfo(data, device);
process.send("child end work");
resolve(data);
}).catch(function (e) {
createLog('error', __dirname, __filename.slice(__dirname.length + 1, - 3), deviceId, 'runChild callback error', e);
 
1 message moved from JavaScript
 

« first day (1785 days earlier)      last day (2332 days later) »