forked from DylanVann/react-native-fast-image
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Upgrade example apps. (DylanVann#453)
- Loading branch information
Showing
43 changed files
with
2,057 additions
and
1,965 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
14 changes: 14 additions & 0 deletions
14
react-native-fast-image-example-cocoapods/__tests__/App-test.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* @format | ||
*/ | ||
|
||
import 'react-native'; | ||
import React from 'react'; | ||
import App from '../App'; | ||
|
||
// Note: test renderer must be required after react-native. | ||
import renderer from 'react-test-renderer'; | ||
|
||
it('renders correctly', () => { | ||
renderer.create(<App />); | ||
}); |
This file contains 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 file contains 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
19 changes: 19 additions & 0 deletions
19
react-native-fast-image-example-cocoapods/android/app/build_defs.bzl
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Helper definitions to glob .aar and .jar targets""" | ||
|
||
def create_aar_targets(aarfiles): | ||
for aarfile in aarfiles: | ||
name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] | ||
lib_deps.append(":" + name) | ||
android_prebuilt_aar( | ||
name = name, | ||
aar = aarfile, | ||
) | ||
|
||
def create_jar_targets(jarfiles): | ||
for jarfile in jarfiles: | ||
name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] | ||
lib_deps.append(":" + name) | ||
prebuilt_jar( | ||
name = name, | ||
binary_jar = jarfile, | ||
) |
8 changes: 8 additions & 0 deletions
8
react-native-fast-image-example-cocoapods/android/app/src/debug/AndroidManifest.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | ||
|
||
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" /> | ||
</manifest> |
6 changes: 2 additions & 4 deletions
6
react-native-fast-image-example-cocoapods/android/app/src/main/AndroidManifest.xml
This file contains 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
Binary file removed
BIN
-68.7 KB
react-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/AntDesign.ttf
Binary file not shown.
Binary file removed
BIN
-64 KB
react-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/Entypo.ttf
Binary file not shown.
Binary file removed
BIN
-13.1 KB
react-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/EvilIcons.ttf
Binary file not shown.
Binary file removed
BIN
-63.6 KB
react-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/Feather.ttf
Binary file not shown.
Binary file removed
BIN
-162 KB
react-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/FontAwesome.ttf
Binary file not shown.
Binary file removed
BIN
-116 KB
...ve-fast-image-example-cocoapods/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf
Binary file not shown.
Binary file removed
BIN
-39.4 KB
...e-fast-image-example-cocoapods/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf
Binary file not shown.
Binary file removed
BIN
-176 KB
...ive-fast-image-example-cocoapods/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf
Binary file not shown.
Binary file removed
BIN
-55.6 KB
react-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/Foundation.ttf
Binary file not shown.
Binary file removed
BIN
-110 KB
react-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/Ionicons.ttf
Binary file not shown.
Binary file removed
BIN
-407 KB
...fast-image-example-cocoapods/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf
Binary file not shown.
Binary file removed
BIN
-125 KB
...t-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/MaterialIcons.ttf
Binary file not shown.
Binary file removed
BIN
-26.8 KB
react-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/Octicons.ttf
Binary file not shown.
Binary file removed
BIN
-52.8 KB
...native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/SimpleLineIcons.ttf
Binary file not shown.
Binary file removed
BIN
-25 KB
react-native-fast-image-example-cocoapods/android/app/src/main/assets/fonts/Zocial.ttf
Binary file not shown.
This file contains 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 file contains 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 file contains 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
6 changes: 0 additions & 6 deletions
6
react-native-fast-image-example-cocoapods/android/settings.gradle
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
rootProject.name = 'ReactNativeFastImageExampleCocoaPods' | ||
include ':react-native-image-picker' | ||
project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android') | ||
include ':react-native-vector-icons' | ||
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') | ||
include ':react-native-fast-image' | ||
project(':react-native-fast-image').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fast-image/android') | ||
|
||
include ':app' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** @format */ | ||
|
||
import { AppRegistry } from 'react-native' | ||
import App from './src' | ||
import { name as appName } from './app.json' | ||
import App from './src' | ||
|
||
AppRegistry.registerComponent(appName, () => App) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
platform :ios, '9.0' | ||
|
||
# The target name is most likely the name of your project. | ||
target 'ReactNativeFastImageExampleCocoaPods' do | ||
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | ||
'Core', | ||
'CxxBridge', | ||
'DevSupport', | ||
'RCTText', | ||
'RCTNetwork', | ||
'RCTWebSocket', | ||
'RCTAnimation', | ||
'RCTImage', | ||
] | ||
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' | ||
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' | ||
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' | ||
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' | ||
|
||
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' | ||
pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker' | ||
pod 'react-native-fast-image', :path => '../node_modules/react-native-fast-image' | ||
end | ||
# Your 'node_modules' directory is probably in the root of your project, | ||
# but if not, adjust the `:path` accordingly | ||
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | ||
'Core', | ||
'CxxBridge', # Include this for RN >= 0.47 | ||
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43 | ||
'RCTText', | ||
'RCTNetwork', | ||
'RCTWebSocket', # Needed for debugging | ||
'RCTAnimation', # Needed for FlatList and animations running on native UI thread | ||
# Add any other subspecs you want to use in your project | ||
'RCTImage', | ||
] | ||
# Explicitly include Yoga if you are using RN >= 0.42.0 | ||
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' | ||
|
||
# Third party deps podspec link | ||
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' | ||
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' | ||
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' | ||
|
||
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' | ||
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler' | ||
pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker' | ||
pod 'react-native-fast-image', :path => '../node_modules/react-native-fast-image' | ||
|
||
end |
Oops, something went wrong.