随笔分类 - React Native
摘要:Create a new application with Typescript: Then: Run:
阅读全文
只有注册用户登录后才能阅读该文。
摘要:When you bring up the on screen keyboard in a mobile app, it will cover any text input or buttons on the bottom half of the screen, which can be frust
阅读全文
摘要:By default, React Native only targets iPhone - so if you run on an iPad, it will show up as a scaled app, and won't look like a native iPad app. To ta
阅读全文
摘要:In large React Native projects, it’s common to have long relative import paths like: With import paths that go up and down the folder hierarchy like t
阅读全文
摘要:In this lesson you will learn how create a re-usable component that gives the user the ability to dismiss the keyboard whenever they tap outside of a
阅读全文
摘要:In this lesson, you will learn how to use the SafeAreaView component to avoid the sensor cluster (the notch) and home activity indicator on the iPhone
阅读全文
摘要:In this lesson we will use Animated.spring and TouchableWithoutFeedback to animate the scale of a button in our React Native application. We will use
阅读全文
摘要:Yellow box warnings in react native can be intrusive. We will use console.disableYellowBox to disable the yellow box entirely. We'll also use console.
阅读全文
摘要:Learn to install JavaScript modules that include native code. Some React Native modules include native code for Android and/or iOS in addition to Java
阅读全文
摘要:Learn to write components that render differently on iOS and Android, but present the same API. First, we'll use the Platform module to change behavio
阅读全文
摘要:In this lesson we will use Animated.timing to animate the opacity and height of a View in our React Native application. This function has attributes t
阅读全文
摘要:In this final React Native lesson of the series we will finalize the Notes view component and squash a few bugs in the code.
阅读全文
摘要:Install: Config Firebase: First we need to require Firebase: Then in the component constructor, we need to init Firebase: The config you can easily ge
阅读全文
摘要:We can access web pages in our React Native application using the WebView component. We will connect the links in our repository component to their Gi
阅读全文
摘要:Nav to Repos component from Dashboard.js: Repos:
阅读全文
摘要:In this lesson we'll create a reusable React Native separator component which manages it's own styles. In this lesson we'll create a reusable React Na
阅读全文
摘要:To show a list of unchanging data in React Native you can use the scroll view component. In this lesson, we'll map through the data we got back from t
阅读全文
摘要:In this React Native lesson, we will be creating a reusable Badge component. The component will also make use of propTypes to validate that its requir
阅读全文
摘要:Let's take a look at the basics of using React Native's Image component, as well as adding some reusable styling to our Dashboard component buttons. W
阅读全文