Giter VIP home page Giter VIP logo

gentlestudent's Introduction

Gentlestudent Native App

Install pod

  • sudo gem install cacoapods
  • cd ios
  • pod init
  • Open podfile and paste following code:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Gentlestudent' do
  rn_path = '../node_modules/react-native'
  rn_maps_path = '../node_modules/react-native-maps'

  pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
  pod 'React', path: rn_path, subspecs: [
    'Core',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket'
  ]

  pod 'react-native-maps', path: rn_maps_path

  pod 'GoogleMaps'  # Remove this line if you don't want to support Google Maps on iOS
  pod 'react-native-google-maps', path: rn_maps_path  # Remove this line if you don't want to support Google Maps on iOS
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'react-native-google-maps'
      target.build_configurations.each do |config|
        config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
      end
    end
    if target.name == "React"
      target.remove_from_project
    end
    if target.name == 'yoga'
        target.build_configurations.each do |config|
            config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'NO'
            config.build_settings['GCC_WARN_64_TO_32_BIT_CONVERSION'] = 'NO'
        end
    end
  end
end
  • pod install

Run

  • open Gentlestudent.xcworkspace and not xcodeproj
  • ⌘+R or click on play button

Known issues (xcode)

Known bugs or errors (xcode)

  • Sometimes the app starts in black screen, but it loads after a few moments
  • Sometimes you need to build(⌘+B) first and afterwards run(⌘+R), normally Run-command builds first before starting the app, sometimes it doesn't.
  • If you didn't work for a long time with xcode, you'll probably get "An eror was encountered while attempting to communicate with this device ...". The solution is to go to xcode > Window > Devices and Simulator > Unplug device > Remove device from the list > Replug device and wait a couple of times.
  • After build it gives error called "/Users/.../Gentlestudent/node_modules/react-native-permissions/ios/RCTConvert+RNPStatus.h:36:24: Missing ',' between enumerators". You need to add comma's in the two files manually.

image

gentlestudent's People

Contributors

ismakutl avatar

Watchers

zw avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.