Skip to content

tasdrake/ScoreCard

Repository files navigation

To start the app:

  1. If you do not have yarn: $ brew install yarn
  2. If you are using Atom: $ apm install editorconfig
  3. $ yarn install
  4. $ react-native run-ios

In Xcode

  1. $ yarn start
  2. Open scoreCard/ios/scoreCard.xcodeproj
  3. Select target device, either the simulator or a connected device
  4. Click run

Register your iPhone for HockeyApp at https://rink.io/sABWRPY, for installing the app for longer a longer time.

Occasionally if you get the same error repeatedly sometimes $ yarn start --reset-cache will solve the problem.

If you get errors in Xcode $ rm -rf node_modules && yarn install will usually fix the problem

ios 12 build failure fix (only need if there is an error during the build)

$ cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../
$ cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh && cd ../../../../

TODO: * Fixed row headers for scrolling (Tas) * redux * load templates * larger column heads/dynamically sized based on content * multiple game save and loading

Snippets for ~/.atom/snipets.cson:

'.source.js':
    'Import React Native':
        'prefix':'imptrn'
        'body': """
            import React, { Component } from 'react'
            import styles from '../css/$1'

            type Props = {}
            export default class $1 extends Component<Props> {
                constructor(props){
                    super(props);
                    this.state = {

                    }
                }
                
                render(){
                    return (
                        $2
                    )
                }
            }
        """
    'React Native Style':
        'prefix': 'rnstyle'
        'body': """
            import { StyleSheet } from 'react-native'
            import colors from './colors'

            module.exports = StyleSheet.create({
                $1: {
                    $2
                }
            })
        """
    'Image':
        'prefix': 'Image'
        'body': '<Image source={{uri: $1}} />'
    'Text':
        'prefix': 'Text'
        'body': '<Text>$1</Text>'
    'View':
        'prefix': 'View'
        'body': """
            <View>
                $1
            </View>
        """
    'ScrollView':
        'prefix': 'ScrollView'
        'body': """
            <ScrollView>
                $1
            </ScrollView>
        """
    'TouchableOpacity':
        'prefix': 'touch'
        'body': """
            <TouchableOpacity>
                $1
            </TouchableOpacity>
            """

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors