Git Product home page Git Product logo

Comments (5)

lyxia avatar lyxia commented on July 18, 2024 1

问题2:给出具体问题
问题3:这是RN都有的,debug下,要把debug页面放前台就好,也可以使用:https://github.com/jhen0409/react-native-debugger
问题4:这是一个性能优化点,可参考:https://reactnative.cn/docs/0.51/performance.html#content

from myrnstartkit.

orzhtml avatar orzhtml commented on July 18, 2024

customKeyboard.js
_onChangeText = (text) => {
this.setState({text});
this.props.onChangeText && this.props.onChangeText(text);
}
赋值后才执行回调,导致行为不同步,建议如下更改:
_onChangeText = (text) => {
this.setState({text}, () => {
this.props.onChangeText && this.props.onChangeText(text);
});
}
或者直接去掉 this.setState({text});

from myrnstartkit.

orzhtml avatar orzhtml commented on July 18, 2024

安卓的报错是:
Cannot read property 'install' of undefined

from myrnstartkit.

lyxia avatar lyxia commented on July 18, 2024

我运行android没有这种报错,建议load本地服务器,不要使用离线包,或者打开debug模式调调

from myrnstartkit.

orzhtml avatar orzhtml commented on July 18, 2024

已经解决了,谢谢。

from myrnstartkit.

Related Issues (5)

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.