Skip to content

Instantly share code, notes, and snippets.


Joe Meyer JoeM-RP

View GitHub Profile
View Home.js
// @flow
import React, { Component } from 'react';
import {
StatusBar, View, AppState, NetInfo,
} from 'react-native';
import { Button } from 'Button';
import { Card } from 'Card';
import { Header } from 'Header';
import { Input } from 'Input';
View ActionHandler.cs
using System;
using System.Reactive.Disposables;
using RxUIForms.Models;
using Xamarin.Forms;
namespace RxUIForms.Helpers
public static class ActionHandler
/// <summary>
View ReactiveUICommands.cs
* Define Commands
public ReactiveCommand ShowActionSheetCommand { get; }
public ReactiveCommand ShowAlertCommand { get; }
public ReactiveCommand<CopyItem, bool> SelectItemCommand { get; }
/* Omitted */
ShowAlertCommand = ReactiveCommand.CreateFromTask(async (arg) => await ShowAlert());
View HomePage.xaml
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="" xmlns:x="" x:Class="RxUIForms.Views.HomePage" Title="{Binding Title}">
<StackLayout Padding="10,20">
<ListView SelectedItem="{Binding SelectedItem, Mode=TwoWay}" ItemsSource="{Binding CopyItems}">
<TextCell Text="{Binding Title}" />
View AppShellViewModel.cs
using System;
using Xamarin.Forms;
using Xamvvm;
namespace RxUIForms.ViewModels
public class AppShellViewModel : BasePageModelRxUI
/// <summary>
JoeM-RP / AppShell.cs
Created Aug 14, 2018
View AppShell.cs
using System;
using ReactiveUI;
using RxUIForms.ViewModels;
using Xamarin.Forms;
using Xamvvm;
namespace RxUIForms.Views
public class AppShell : MasterDetailPage, IBasePageRxUI<AppShellViewModel>
View RxUIForms.App.xaml.cs
using System;
using RxUIForms.ViewModels;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using Xamvvm;
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
namespace RxUIForms
public partial class App : Application
JoeM-RP / RxUIForms.csproj
Created Aug 7, 2018
RxUI + Xamvvm netstandard project file
View RxUIForms.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PackageReference Include="Xamarin.Forms" Version="" />
<PackageReference Include="reactiveui-core" Version="7.0.0" />
<PackageReference Include="reactiveui-xamforms" Version="7.0.0" />
View EntryReturnTypeProperty.xaml
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns=""
<Style x:Name="MyEntry" TargetType="Entry">
<Setter Property="HeightRequest" Value="45" />
View AndroidEntryMoveNextEffect.cs
using System;
using samples.core.Controls;
using samples.Droid.Effects;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportEffect(typeof(EntryMoveNextEffect), nameof(EntryMoveNextEffect))]
namespace samples.Droid.Effects
public class EntryMoveNextEffect : PlatformEffect