This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import PropTypes from 'prop-types'; | |
| import React from 'react'; | |
| import { | |
| View, | |
| Easing, | |
| Animated, | |
| StyleSheet, | |
| Dimensions, | |
| ViewPropTypes, | |
| } from 'react-native'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This is an example of how to fetch external data in response to updated props, | |
| // If you are using an async mechanism that does not support cancellation (e.g. a Promise). | |
| class ExampleComponent extends React.Component { | |
| _currentId = null; | |
| state = { | |
| externalData: null | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // FaiChou | |
| // willMount add | |
| // willUnmount remove | |
| const __notices = []; // eslint-disable-line | |
| const isDebug = true; | |
| // register notification,name: notification name,selector: function for action to do,observer: type Object | |
| export const addNotification = (name, selector, observer) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # When using RN in combination with Cocoapods, a lot of | |
| # things are broken. These are the fixes we had to append | |
| # to our Podfile when upgrading to ReactNative@0.55.3. | |
| # | |
| # WARNING: Check those line numbers when you're on a different version! | |
| def change_lines_in_file(file_path, &change) | |
| print "Fixing #{file_path}...\n" | |
| contents = [] |
OlderNewer