Skip to content

Instantly share code, notes, and snippets.

View ShaileshPrajapati-BTC's full-sized avatar

ShaileshPrajapati-BTC

View GitHub Profile
<h3>Convert Currency to Bitcoin</h3>
<div class="row">
<div class="col-sm-3">
<span class="label label-default">Select Currency</span>
<%= select_tag 'Currency', options_for_select(@Currency.keys),class:'form-control' %>
</div>
<div class = "col-sm-3">
<span class="label label-default">Enter Value</span>
import React, { Component } from "react";
import FCM from "react-native-fcm";
export default class PushNotification extends Component {
constructor(props) {
super(props);
}
componentDidMount() {
import React,{Component} from 'react';
import FCM from "react-native-fcm";
export default class Home extends Component {
constructor(props) {
super(props);
this.state = {
fcm_token: ""
};
var path = require("path")
var webpack = require('webpack')
var BundleTracker = require('webpack-bundle-tracker')
module.exports = {
context: __dirname,
entry: './assets/js/index.js',
output: {
{
"name": "Caregiver",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"babel-plugin-transform-remove-console": "^6.8.5",
{
"name": "react-native-android-toast",
"version": "1.0.0",
"description": "Android Toast",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"Android",
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.toast">
</manifest>
package com.toast;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import android.widget.Toast;
public class ToastModule extends ReactContextBaseJavaModule {
package com.toast;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.ArrayList;
import java.util.Collections;
import {NativeModules} from 'react-native';
module.exports = NativeModules.ToastModule;