How to use the react-native-macos.StyleSheet.create function in react-native-macos

To help you get started, weโ€™ve selected a few react-native-macos 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 7kfpun / FinanceMacOSReactNative / app / views / settings / elements / stock-cell.js View on Github external
import React from 'react';
import {
  StyleSheet,
  Text,
  TouchableHighlight,
  View,
} from 'react-native-macos';

// 3rd party libraries
import { inject, observer } from 'mobx-react/native';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'black',
    flexDirection: 'row',
    justifyContent: 'center',
    marginHorizontal: 15,
    height: 65,
    borderBottomColor: '#CCCCCC',
    borderBottomWidth: StyleSheet.hairlineWidth,
  },
  deleteIcon: {
    flex: 1,
    alignSelf: 'center',
  },
  deleteText: {
    fontSize: 15,
github 7kfpun / FinanceMacOSReactNative / app / views / settings / index.js View on Github external
import {
  ListView,
  StyleSheet,
  Text,
  TouchableHighlight,
  View,
} from 'react-native-macos';
import { inject, observer } from 'mobx-react/native';
import { Link, nativeHistory } from 'react-router-native';

// View Elements
import StockCell from './elements/stock-cell';  // eslint-disable-line import/no-named-as-default,import/no-named-as-default-member

import TouchBar from '../touch-bar';  // eslint-disable-line import/no-named-as-default,import/no-named-as-default-member

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'black',
  },
  statusBar: {
    height: 22,
    backgroundColor: '#202020',
  },
  navigatorBar: {
    height: 36,
    flexDirection: 'row',
    padding: 10,
    justifyContent: 'space-between',
    alignItems: 'center',
    backgroundColor: '#202020',
    borderBottomWidth: StyleSheet.hairlineWidth,
github 7kfpun / FinanceMacOSReactNative / app / views / main / elements / chart-page.js View on Github external
import React from 'react';
import {
  Image,
  StyleSheet,
  Text,
  TouchableHighlight,
  View,
} from 'react-native-macos';

// 3rd party libraries
import { inject, observer } from 'mobx-react/native';

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  timeSpanGroup: {
    flex: 1,
    flexDirection: 'row',
  },
  timeSpan: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  timeSpanText: {
    fontSize: 12,
    color: 'white',
    marginTop: 10,
github 7kfpun / FinanceMacOSReactNative / app / views / main / elements / news-page.js View on Github external
import React from 'react';
import {
  ListView,
  StyleSheet,
  View,
} from 'react-native-macos';

// 3rd party libraries
import { inject, observer } from 'mobx-react/native';

// Elements
import NewsCell from './news-cell';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingLeft: 15,
    paddingRight: 15,
  },
});

@inject('selectedStore') @observer
export default class NewsPage extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      dataSource: new ListView.DataSource({ rowHasChanged: (row1, row2) => row1 !== row2 }),
      key: Math.random(),
    };
github 7kfpun / FinanceMacOSReactNative / app / views / add / elements / stock-cell.js View on Github external
import React from 'react';
import {
  StyleSheet,
  Text,
  TouchableHighlight,
  View,
} from 'react-native-macos';

// 3rd party libraries
import { inject, observer } from 'mobx-react/native';

import { nativeHistory } from 'react-router-native';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    flexDirection: 'row',
    height: 65,
    backgroundColor: 'black',
    borderBottomColor: '#CCCCCC',
    borderBottomWidth: StyleSheet.hairlineWidth,
  },
  stock: {
    flex: 8,
    flexDirection: 'column',
  },
  symbol: {
    flex: 1,
    flexDirection: 'row',
  },
github 7kfpun / FinanceMacOSReactNative / app / views / main / elements / details-page.js View on Github external
import React from 'react';
import {
  StyleSheet,
  Text,
  View,
} from 'react-native-macos';

// 3rd party libraries
import { inject, observer } from 'mobx-react/native';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingLeft: 10,
    paddingRight: 10,
  },
  nameBlock: {
    flex: 1,
    paddingTop: 4,
    justifyContent: 'center',
    alignItems: 'center',
  },
  nameText: {
    fontWeight: 'bold',
    fontSize: 12,
    color: 'white',
  },
github 7kfpun / FinanceMacOSReactNative / app / views / add / index.js View on Github external
Text,
  TextInput,
  TouchableHighlight,
  View,
} from 'react-native-macos';

// 3rd party libraries
import { nativeHistory } from 'react-router-native';

// Elements
import StockCell from './elements/stock-cell';  // eslint-disable-line import/no-named-as-default,import/no-named-as-default-member

// Utils
import finance from '../../utils/finance';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    flexDirection: 'column',
    backgroundColor: 'black',
  },
  statusBar: {
    height: 22,
  },
  topBlock: {
    backgroundColor: '#202020',
    paddingTop: 15,
    paddingBottom: 10,
    paddingLeft: 15,
    paddingRight: 15,
  },
  helpText: {
github BafS / Material-Colors-native / index.macos.js View on Github external
);
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    flexDirection: 'row',
    justifyContent: 'flex-start',
    alignItems: 'flex-start',
    backgroundColor: '#fff'
  },

  leftPane: {
    marginTop: 26,
    padding: 6,
    paddingTop: 4,
    paddingBottom: 20
  },

  rightPane: {
github 7kfpun / FinanceMacOSReactNative / app / views / main / elements / news-cell.js View on Github external
import React from 'react';
import {
  Linking,
  StyleSheet,
  Text,
  TouchableHighlight,
  View,
} from 'react-native-macos';

import moment from 'moment';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    flexDirection: 'column',
    marginTop: 20,
    backgroundColor: '#202020',
  },
  titleText: {
    fontSize: 12,
    color: 'white',
    textAlign: 'left',
  },
  descriptionText: {
    fontSize: 12,
    fontWeight: '100',
    color: 'white',
    textAlign: 'left',
github bbqsrc / sax / src / containers / main.js View on Github external
let inputField

    if (this.state.showInputField) {
      inputField = 
    }
    
    return (
      
    )
  }
}

const styles = StyleSheet.create({
  container: {
    flexDirection: "column",
    flex: 1,
    paddingTop: 38
  }
})