Skip to content

Instantly share code, notes, and snippets.

View haruelrovix's full-sized avatar
👨‍💻
Working from anywhere

Havit Rovik haruelrovix

👨‍💻
Working from anywhere
View GitHub Profile
@haruelrovix
haruelrovix / webpack.config.dev.js
Last active December 10, 2018 02:22
RNW x RNE: url-loader
{
test: /\.ttf$/,
loader: 'url-loader',
include: path.join(paths.appNodeModules, 'react-native-vector-icons'),
},
@haruelrovix
haruelrovix / index.js
Created December 10, 2018 02:20
RNW x RNE: RNVI works like a charm with RNW!
import React from 'react';
import ReactDOM from 'react-dom';
// Generate required css
import iconFont from 'react-native-vector-icons/Fonts/FontAwesome.ttf';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
@haruelrovix
haruelrovix / Home.js
Last active December 10, 2018 02:00
RNW x RNE: Add Home component
import React, { PureComponent } from 'react';
import { View } from 'react-native';
import { Input, Button } from 'react-native-elements';
class Home extends PureComponent {
render() {
return (
<View>
<Input
label='Owner'
@haruelrovix
haruelrovix / Shared.style.js
Last active December 10, 2018 01:53
RNE x RNW: Style for Home
export default {
input: {
containerStyle: {
marginBottom: 10
},
inputStyle: {
height: 46
}
},
button: {
@haruelrovix
haruelrovix / Home.js
Last active December 10, 2018 01:52
RNE x RNW: Add styling to Home component
import React, { PureComponent } from 'react';
import { View } from 'react-native';
import { Input, Button } from 'react-native-elements';
import styles from './Shared.style';
class Home extends PureComponent {
render() {
const { input, button } = styles;
@haruelrovix
haruelrovix / App.js
Created December 9, 2018 01:27
RNE x RNW: Import Home component
import React, { Component } from 'react';
import Home from './Components/Home';
class App extends Component {
render() {
return (
<Home />
);
}
}