Summary: This diff creates a sample React Native project (based on the 0.62-rc.0 template). This example is created like: (Documenting this here as in the future this might be easier than upgrading the project itself) 1. Run `npx react-native init ReactNativeFlipperExample --version 0.62.0-rc.0` 2. Follow the installation steps to enable Flipper, that is, call `initializeFlipper(this, getReactNativeHost().getReactInstanceManager());` at the end of the `onCreate` method in `MainApplication.java` 3. Put `FlipperTicTacToe` in the root of the project, and call it from `App.js` as a component 4. install `react-native-flipper` as dependency 5. install `relative-deps` as dev dependency, and set it up as shown in `package.json`. This tool make sure that we build and test this project against the version of react-native-flipper in this repository, rather than against the one on NPM. 6. removed some stuff, like tests and linting, which is just in the way in this repo This PR does not support iOS, as Flipper + RN iOS is still broken in 0.62.0-rc.0, and the current version of react-native-flipper doesn't support iOS yet either. Documentation on how to set up Flipper in general is not part of this Diff _N.B. since this is a **public** project, to be visible and runnable by our OSS community, the build setup is kept plain, vanilla, react-native, and **not** wired up to our normal / internal build processes. This is also the reason that lint suggestions beyond the license headers have been ignored. If any others should be applied, it is probably the official react native template that requires updating_ Reviewed By: passy Differential Revision: D19449295 fbshipit-source-id: 2aeb6044f8dd01f09a95350c84fff2419d685a65
60 lines
813 B
Plaintext
60 lines
813 B
Plaintext
# OSX
|
|
#
|
|
.DS_Store
|
|
|
|
# Xcode
|
|
#
|
|
build/
|
|
*.pbxuser
|
|
!default.pbxuser
|
|
*.mode1v3
|
|
!default.mode1v3
|
|
*.mode2v3
|
|
!default.mode2v3
|
|
*.perspectivev3
|
|
!default.perspectivev3
|
|
xcuserdata
|
|
*.xccheckout
|
|
*.moved-aside
|
|
DerivedData
|
|
*.hmap
|
|
*.ipa
|
|
*.xcuserstate
|
|
|
|
# Android/IntelliJ
|
|
#
|
|
build/
|
|
.idea
|
|
.gradle
|
|
local.properties
|
|
*.iml
|
|
|
|
# node.js
|
|
#
|
|
node_modules/
|
|
npm-debug.log
|
|
yarn-error.log
|
|
|
|
# BUCK
|
|
buck-out/
|
|
\.buckd/
|
|
*.keystore
|
|
!debug.keystore
|
|
|
|
# fastlane
|
|
#
|
|
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
|
|
# screenshots whenever they are needed.
|
|
# For more information about the recommended setup visit:
|
|
# https://docs.fastlane.tools/best-practices/source-control/
|
|
|
|
*/fastlane/report.xml
|
|
*/fastlane/Preview.html
|
|
*/fastlane/screenshots
|
|
|
|
# Bundle artifact
|
|
*.jsbundle
|
|
|
|
# CocoaPods
|
|
/ios/Pods/
|