Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
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,
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,
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(),
};
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',
},
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',
},
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: {
);
}
}
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: {
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',
let inputField
if (this.state.showInputField) {
inputField =
}
return (
)
}
}
const styles = StyleSheet.create({
container: {
flexDirection: "column",
flex: 1,
paddingTop: 38
}
})