Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var React = require('react');
var NavigationReact = require('navigation-react');
var NavigationLink = NavigationReact.NavigationLink;
var RefreshLink = NavigationReact.RefreshLink;
var NavigationBackLink = NavigationReact.NavigationBackLink;
exports.Listing = React.createClass({
render: function() {
var stateNavigator = this.props.stateNavigator;
// Renders a list of people from the props.
var people = this.props.people.map(function (person) {
return (
{person.Name}
var React = require('react');
var NavigationReact = require('navigation-react');
var NavigationLink = NavigationReact.NavigationLink;
var RefreshLink = NavigationReact.RefreshLink;
var NavigationBackLink = NavigationReact.NavigationBackLink;
exports.Listing = React.createClass({displayName: "Listing",
render: function() {
var stateNavigator = this.props.stateNavigator;
// Renders a list of people from the props.
var people = this.props.people.map(function (person) {
return (
React.createElement("tr", {key: person.Id},
React.createElement("td", null,
React.createElement(NavigationLink, {
stateKey: "person",
navigationData: {id: person.Id},
stateNavigator: stateNavigator},
person.Name