How to use the react-native.AppRegistry.registerComponent function in react-native

To help you get started, we’ve selected a few react-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github timfpark / react-native-location / tests / integration / index.js View on Github external
/** @format */

import { AppRegistry } from "react-native";
import App from "./App";
import { name as appName } from "./app.json";

AppRegistry.registerComponent(appName, () => App);
github yohnz / maoyanFilm / index.android.js View on Github external
/**
 * https://github.com/yohnz/maoyanFilm
 */

import React, {
    AppRegistry,
    Component,
    StyleSheet,
    Text,
    View,
} from 'react-native';

import film from "./main"

AppRegistry.registerComponent('film', () => film);
github sbalay / react-native-redux-form-example / index.android.js View on Github external
import { AppRegistry } from 'react-native';

import main from './main';

AppRegistry.registerComponent('ReduxFormExample', () => main);
github GantMan / WaveFun / index.ios.js View on Github external
flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#000',
  },
  box: {
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#C53938',
    height: 100,
    width: 100,
    overflow: 'hidden'
  },
});

AppRegistry.registerComponent('WaveFun', () => WaveFun);
github react-native-training / apollo-graphql-mongodb-react-native / apolloclient / index.android.js View on Github external
import { ApolloProvider } from 'react-apollo'

const Client = () => {
  const networkInterface = createNetworkInterface({
    uri: 'http://localhost:8080/graphql'
  })
  const client = new ApolloClient({
    networkInterface
  });
  return (
    
      
    )
}

AppRegistry.registerComponent('apolloclient', () => Client);
github pankod / react-native-picker-modal-view / ExampleApp / index.js View on Github external
/**
 * @format
 */

import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';

AppRegistry.registerComponent(appName, () => App);
github codesinghanoop / react-native-d3-tree-graph / example / index.js View on Github external
alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5,
  },
});

AppRegistry.registerComponent('example', () => example);
github transistorsoft / rn-background-geolocation-demo / index.ios.js View on Github external
import HomeView from './components/HomeView';

export default class Application extends Component {
  componentDidMount() {
    StatusBar.setBarStyle('default');
  }
  render() {
    return (
      
    );
  }
}

AppRegistry.registerComponent('RNBackgroundGeolocationSample', () => Application);
github bsiddiqui / react-native-gesture-view / example / index.android.js View on Github external
alignItems: 'center',
    backgroundColor: '#F5FCFF'
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5
  }
})

AppRegistry.registerComponent('GestureViewExample', () => GestureViewExample)
github charlot567 / react-native-comparison-slider / react-native-comparison-slider-example / backup.js View on Github external
);
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});

AppRegistry.registerComponent('ComparisonSlider', () => Index);