This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//[...] | |
var getImageSource = require('./getImageSource'); | |
var MovieCell = React.createClass({ | |
render: function() { | |
return ( | |
<View> | |
<TouchableHighlight onPress={this.props.onselect}> | |
<View style={styles.row}> | |
<Image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sqlite = require('./react-native-sqlite'); | |
sqlite.open("filename.sqlite", function (error, database) { | |
if (error) { | |
console.log("Failed to open database:", error); | |
return; | |
} | |
var sql = "SELECT a, b FROM table WHERE field=? AND otherfield=?"; | |
var params = ["somestring", 99]; | |
database.executeSQL(sql, params, rowCallback, completeCallback); | |
function rowCallback(rowData) { |