Giter Club home page Giter Club logo

Comments (6)

kanzitelli avatar kanzitelli commented on May 28, 2024 2

@stevenroh Thanks for the kind words! And enjoy the new version of the starter with plenty of improvements 🎉

from expo-starter.

kanzitelli avatar kanzitelli commented on May 28, 2024 1

Hi @stevenroh! Thanks for commenting on that. You are right, it should be exactly there where you put it. I am preparing new update with up-to-date Expo SDK and other packages. Also with some more improvements as in rnn-starter. And also, problem with stores.ui is fixed there. I will publish it today or following days.

from expo-starter.

kanzitelli avatar kanzitelli commented on May 28, 2024

Hi @brvangarcia! Thank you! You can ignore warnings, they didn’t affect any app I’ve been building bootstrapped from the starter. But yeah, I will do something to get rid of them once I have more free time.

About the error, I have just checked and everything seems to be working on my end. Did you apply any changes on your end? Or it just didn’t work from the beginning?

It happened to me some time ago, but the problem was with the code. I don’t remember what it was exactly about but it was easy to fix.

from expo-starter.

brvangarcia avatar brvangarcia commented on May 28, 2024

Thanks, bro. Cool, I'll dismiss the warning and the error was a library that I installed.

from expo-starter.

stevenroh avatar stevenroh commented on May 28, 2024

Hi,

Not sure what happened on my app. I got the same error (app was crashing and saying _stores.stores.ui was undefined).

I moved const {ui} = stores; to init() and it's now working.

Maybe the store was not ready ?

import * as Font from 'expo-font';
import {IconComponent} from '../components/icon';
import {stores} from '../stores';

export class OnStart implements IService {
  private inited = false;

  init = async (): PVoid => {
    const {ui} = stores; // <== Moved ui var here

    if (!this.inited) {
      ui.incAppLaunces();

      await this.loadAssets();

      this.inited = true;
    }
  };

  private loadAssets = async () => {
    const fonts = [IconComponent.font];

    const fontAssets = fonts.map(font => Font.loadAsync(font));

    await Promise.all([...fontAssets]);
  };
}

from expo-starter.

stevenroh avatar stevenroh commented on May 28, 2024

Hi @kanzitelli !

Thanks for the fast update. Amazing work, thanks for this starter 🔥😎

from expo-starter.

Related Issues (20)

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.